Fix Anthropic/Gemini providers; add latest curated models - #2
Merged
Merged
Conversation
- Anthropic: send valid `anthropic-version: 2023-06-01` header (was a branding string that Anthropic rejects with HTTP 400); move branding to User-Agent. - Gemini: send tool results (functionResponse parts) in a `user` turn instead of `model`; Gemini only accepts user/model roles. - Add regression tests for both fixes. - Curated models: add OpenAI GPT-5.6, Gemini 3.6 Flash and 3.5 Flash-Lite, Anthropic Opus 4.7/4.6; default Gemini preset -> 3.6 Flash. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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
Two provider bug fixes plus refreshed curated model lists. Builds clean; 35/35 tests pass (33 existing + 2 new regression tests).
Fixed
anthropic-versionheader — was sending the branding stringLLMProviderKit/1.0, which the Anthropic API rejects with HTTP 400 (invalid anthropic-version). Now sends the required dated value2023-06-01; branding moved toUser-Agent. This unblocks the Anthropic provider against the live API.functionResponseparts were sent in amodelturn. Gemini only acceptsuser/modelroles and expects function responses in auserturn (docs); sending them asmodelis rejected/mishandled. Now usesuser.Added (latest models, July 2026)
gpt-5.6, alias → Sol) as flagship.gemini-3.6-flash, new flagship) and 3.5 Flash-Lite (gemini-3.5-flash-lite); default Gemini preset bumped to 3.6 Flash; reasoning heuristic extended togemini-3.6-.claude-opus-4-7) and Opus 4.6 (claude-opus-4-6).Tests
anthropicSendsValidVersionHeader,geminiSendsToolResultsAsUserRole.🤖 Generated with Claude Code