Skip to content

Fix Anthropic/Gemini providers; add latest curated models - #2

Merged
ayman3000 merged 1 commit into
mainfrom
fix/provider-headers-roles-and-latest-models
Jul 27, 2026
Merged

Fix Anthropic/Gemini providers; add latest curated models#2
ayman3000 merged 1 commit into
mainfrom
fix/provider-headers-roles-and-latest-models

Conversation

@ayman3000

Copy link
Copy Markdown
Owner

Summary

Two provider bug fixes plus refreshed curated model lists. Builds clean; 35/35 tests pass (33 existing + 2 new regression tests).

Fixed

  • Anthropic anthropic-version header — was sending the branding string LLMProviderKit/1.0, which the Anthropic API rejects with HTTP 400 (invalid anthropic-version). Now sends the required dated value 2023-06-01; branding moved to User-Agent. This unblocks the Anthropic provider against the live API.
  • Gemini tool-result rolefunctionResponse parts were sent in a model turn. Gemini only accepts user/model roles and expects function responses in a user turn (docs); sending them as model is rejected/mishandled. Now uses user.

Added (latest models, July 2026)

  • OpenAI GPT-5.6 (gpt-5.6, alias → Sol) as flagship.
  • Gemini 3.6 Flash (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 to gemini-3.6-.
  • Anthropic Opus 4.7 (claude-opus-4-7) and Opus 4.6 (claude-opus-4-6).

Tests

  • anthropicSendsValidVersionHeader, geminiSendsToolResultsAsUserRole.

🤖 Generated with Claude Code

- 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>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@ayman3000
ayman3000 merged commit 44a0bb9 into main Jul 27, 2026
1 check passed
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.

1 participant