Skip to content

v6.9.1#456

Merged
luispater merged 43 commits intomainfrom
plus
Mar 23, 2026
Merged

v6.9.1#456
luispater merged 43 commits intomainfrom
plus

Conversation

@luispater
Copy link

No description provided.

ailuntz and others added 30 commits March 10, 2026 16:27
…fix leak

        When no request translator is registered for a format pair (e.g.
        openai-response → openai-response), TranslateRequest returned the raw
        payload unchanged. This caused client-side model prefixes (e.g.
        "copilot/gpt-5-mini") to leak into upstream requests, resulting in
        "The requested model is not supported" errors from providers.

        The fallback path now updates the "model" field in the payload to
        match the resolved model name before returning.
  - Log a warning instead of silently ignoring sjson.SetBytes errors in the TranslateRequest fallback path
  - Add registry_test.go with tests covering the fallback model normalization and verifying registered transforms take precedence
…nt Google 500

When Claude sends redacted thinking with empty text, the translator
was omitting the "text" field from thought parts. Google Antigravity
API requires this field, causing 500 "Unknown Error" responses.

Verified: 129/129 error logs with empty thought → 500, 0/97 success
logs had empty thought. After fix: 0 new "Unknown Error" 500s.
…ng logic

- Introduced a new method `buildRecord` in `usageReporter` to encapsulate record creation, improving code readability and maintainability.
- Added latency tracking to usage records, ensuring accurate reporting of request latencies.
- Updated tests to validate the inclusion of latency in usage records and ensure proper functionality of the new reporting structure.
… compatibility

Claude Code and MCP clients may send tool names containing characters
invalid for Gemini's function_declarations (e.g. '/', '@', spaces).
Sanitize on request via SanitizeFunctionName and restore original names
on response for both antigravity/claude and gemini-cli/claude translators.
…slators

Apply SanitizeFunctionName on request and RestoreSanitizedToolName on
response for: gemini/claude, gemini/openai/chat-completions,
gemini/openai/responses, antigravity/openai/chat-completions,
gemini-cli/openai/chat-completions.

Also update SanitizedToolNameMap to handle OpenAI format
(tools[].function.name) in addition to Claude format (tools[].name).
fix(auth): ensure absolute paths for auth file handling
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
eltociear and others added 13 commits March 23, 2026 16:57
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
refactor(claude): centralize usage token calculation logic and add tests for cached token handling
…text

fix(antigravity): always include text field in thought parts to prevent Google 500
fix(translator): sanitize tool names for Gemini function_declarations compatibility
feat(claude): stabilize device fingerprint across mixed Claude Code and cloaked clients
fix: avoid data race when watching request cancellation
fix: normalize model name in TranslateRequest fallback to prevent prefix leak
…ernating-model-support

fix: fall back on model support errors during auth rotation
…preview-compat

fix: normalize web_search_preview for codex responses
refactor: streamline usage reporting by consolidating record publishi…
@luispater luispater merged commit 1dc4ecb into router-for-me:main Mar 23, 2026
1 of 2 checks passed
@luispater luispater deleted the plus branch March 23, 2026 16:43
@gemini-code-assist
Copy link

Warning

Gemini is experiencing higher than usual traffic and was unable to create the summary. Please try again in a few hours by commenting /gemini summary.

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.

10 participants