feat: add Gemini OAuth support for embedding & media APIs#17800
Closed
irchelper wants to merge 2 commits into
Closed
feat: add Gemini OAuth support for embedding & media APIs#17800irchelper wants to merge 2 commits into
irchelper wants to merge 2 commits into
Conversation
dce76fa to
e303e54
Compare
added 2 commits
February 16, 2026 18:16
Add parseGeminiAuth() to detect OAuth JSON format ({"token": "...", "projectId": "..."})
and use Bearer token authentication instead of x-goog-api-key header.
This allows OAuth users (using gemini-cli-auth extension) to use memory_search
with Gemini embedding API.
Extract parseGeminiAuth() to shared infra module and use it in both embeddings-gemini.ts and inline-data.ts. Previously, inline-data.ts directly set x-goog-api-key header without handling OAuth JSON format. Now it properly supports both traditional API keys and OAuth tokens.
7ff793e to
162d4ea
Compare
Author
|
Restructured: split into PR stack for easier review. This PR now contains only OAuth support (commits 1-2). FTS fallback + query expansion moved to a separate dependent PR. |
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.
Summary
Support OAuth authentication for Gemini embedding and media understanding APIs, so memory search and image/audio analysis work without explicit API keys when using OAuth.
Changes
Benefits
Fixes #17725 (OAuth part)
Closes #17813