fix: add native Gemini embedding driver#997
fix: add native Gemini embedding driver#997chethanuk wants to merge 3 commits intoRightNow-AI:mainfrom
Conversation
jaberjaber23
left a comment
There was a problem hiding this comment.
LGTM. Clean Gemini embedding driver with batch/single fallback, Zeroizing for API key security, proper error handling, and tests. Has merge conflicts — please rebase on main.
|
This PR has merge conflicts. Please rebase onto the latest main branch and resolve conflicts so we can merge. |
|
Thanks @chethanuk — after reviewing both your PR and #1052, we'd like to land this one as the canonical Gemini embedding driver because it handles more real-world edge cases:
Two asks before merge:
Minor nit: on error bodies, Once rebased and green, we'll merge this. Will close #1052 as the smaller subset. |
This pull request introduces support for Gemini embedding models by adding API key auto-detection for Gemini and Google, implementing a new GeminiEmbeddingDriver, and configuring default model settings. It also includes minor refactorings for MCP transport configuration and formatting cleanups in the web fetch and search modules. Feedback was provided regarding the use of unwrap_or_default() when reading response bodies, which could mask underlying network or API errors.
Summary
Validation
New Features
Bug Fixes / Reliability
Tests
Refactor