Feature/gemini sdk playground#6
Merged
koljahuang merged 14 commits intomainfrom Apr 3, 2026
Merged
Conversation
added 2 commits
April 3, 2026 15:49
…up, and Playground SDK selector
- Add native Gemini SDK endpoints (/v1beta/models/{model}:generateContent)
- Route Gemini models through Anthropic Messages endpoint (/v1/messages)
- Fix pricing: filter cross-region entries against profile cache
- Run stale pricing cleanup on startup and fix scheduler order
- Add SDK Protocol toggle in Playground (Anthropic/OpenAI/Gemini)
- Fix unused variable lint errors (F841)
…provements - Add image upload/send/receive for all three SDK protocols (OpenAI, Anthropic, Gemini) - Gemini SDK option now only shown for Gemini models (other models get OpenAI + Anthropic) - Add X-Requested-With header for Anthropic and Gemini SDK to fix CSRF 403 errors - Add attach button with thumbnail preview and per-image delete - Support pure-image sends (no text required) - Parse Gemini inlineData responses to display generated images in chat - Minor formatting cleanup in Gemini backend endpoint - Add --no-cache to Docker builds in build-and-push.sh
Comment on lines
+464
to
+471
| _stream_gemini_as_anthropic( | ||
| payload=payload, | ||
| api_key=settings.GEMINI_API_KEY, | ||
| request_id=request_id, | ||
| model=request_data.model, | ||
| token=token, | ||
| start_time=start_time, | ||
| ), |
Comment on lines
+291
to
+298
| _stream_proxy( | ||
| url=url, | ||
| raw_body=raw_body, | ||
| model_name=model_name, | ||
| request_id=request_id, | ||
| token=token, | ||
| start_time=start_time, | ||
| ), |
added 4 commits
April 4, 2026 06:58
koljahuang
added a commit
that referenced
this pull request
Apr 4, 2026
Feature/gemini sdk playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.