fix(patch): cherry-pick f08b4af to release/v0.46.0-preview.2-pr-27749 to patch version v0.46.0-preview.2 and create version 0.46.0-preview.3#27768
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a model mapping mechanism to allow for flexible redirection of AI model requests. By introducing a new decorator pattern for content generators, the system can now intercept and transform model identifiers before they reach the underlying API client. This change ensures that specific authentication flows can route requests to the appropriate model versions as required by the updated configuration. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
📊 PR Size: size/L
|
There was a problem hiding this comment.
Code Review
This pull request introduces the ModelMappingContentGenerator class to dynamically map model identifiers based on the authentication type, specifically mapping gemini-3.5-flash to gemini-3-flash for Google Login and Compute ADC. It also updates getCodeAssistServer to recursively unwrap both logging and model mapping generators, updates flash model configurations, and adds comprehensive unit tests. No review comments were provided, so there is no feedback to address.
|
Size Change: +3.76 kB (+0.01%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This PR automatically cherry-picks commit f08b4af to patch version v0.46.0-preview.2 in the preview release to create version 0.46.0-preview.3.