Skip to content

Feature/gemini sdk playground#6

Merged
koljahuang merged 14 commits intomainfrom
feature/gemini-sdk-playground
Apr 3, 2026
Merged

Feature/gemini sdk playground#6
koljahuang merged 14 commits intomainfrom
feature/gemini-sdk-playground

Conversation

@koljahuang
Copy link
Copy Markdown
Contributor

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.

Chao Huang 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,
),
Comment thread backend/app/core/security.py Fixed
Comment thread backend/app/core/security.py Fixed
Comment thread backend/app/core/security.py Fixed
@koljahuang koljahuang merged commit 8514d88 into main Apr 3, 2026
11 checks passed
koljahuang added a commit that referenced this pull request Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants