Luis Pater
2cbe4a790c
chore(translator): remove unnecessary whitespace in gemini_openai_response code
2026-01-20 11:47:33 +08:00
Luis Pater
68b3565d7b
Merge branch 'main' into dev (PR #961 )
2026-01-20 11:42:22 +08:00
Luis Pater
d4bb4e6624
refactor(antigravity): remove unused client signature handling in thinking objects
2026-01-20 10:17:55 +08:00
Luis Pater
a7ffc77e3d
Merge branch 'dev' into fix/cross-model-thinking-signature
2026-01-20 10:10:43 +08:00
hkfires
52e46ced1b
fix(translator): avoid forcing RFC 8259 system prompt
2026-01-19 11:33:27 +08:00
hkfires
cf9daf470c
feat(translator): report cached token usage in Claude output
2026-01-19 11:23:44 +08:00
Luis Pater
140d6211cc
feat(translator): add reasoning state tracking and improve reasoning summary handling
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
- Introduced `oaiToResponsesStateReasoning` to track reasoning data.
- Enhanced logic for emitting reasoning summary events and managing state transitions.
- Updated output generation to handle multiple reasoning entries consistently.
2026-01-19 03:58:28 +08:00
hkfires
d5ef4a6d15
refactor(translator): remove registry model lookups from thinking config conversions
2026-01-18 10:30:14 +08:00
Luis Pater
46433a25f8
fix(translator): add check for empty text to prevent invalid serialization in gemini and antigravity
2026-01-18 00:50:10 +08:00
Luis Pater
f8f3ad84fc
Fixed : #1064
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
feat(translator): improve system message handling and content indexing across translators
- Updated logic for processing system messages in `claude`, `gemini`, `gemini-cli`, and `antigravity` translators.
- Introduced indexing for `systemInstruction.parts` to ensure proper ordering and handling of multi-part content.
- Added safeguards for accurate content transformation and serialization.
2026-01-17 05:40:56 +08:00
Luis Pater
65b4e1ec6c
feat(codex): enable instruction toggling and update role terminology
...
- Added conditional logic for Codex instruction injection based on configuration.
- Updated role terminology from "user" to "developer" for better alignment with context.
2026-01-17 04:12:29 +08:00
Luis Pater
6600d58ba2
feat(codex): enhance input transformation and remove unused safety_identifier field
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
- Added logic to transform `inputResults` into structured JSON for improved processing.
- Removed redundant `safety_identifier` field in executor payload to streamline requests.
2026-01-16 19:59:01 +08:00
Luis Pater
cec4e251bd
feat(translator): preserve text field in serialized output during chat completions processing
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
2026-01-16 11:35:34 +08:00
hkfires
199cf480b0
refactor(thinking): remove support for non-standard thinking configurations
...
This change removes the translation logic for several non-standard, proprietary extensions used to configure thinking/reasoning. Specifically, support for `extra_body.google.thinking_config` and the Anthropic-style `thinking` object has been dropped from the OpenAI request translators.
This simplification streamlines the translators, focusing them on the standard `reasoning_effort` parameter. It also removes the need to look up model information from the registry within these components.
BREAKING CHANGE: Support for non-standard thinking configurations via `extra_body.google.thinking_config` and the Anthropic-style `thinking` object has been removed. Clients should now use the standard `reasoning_effort` parameter to control reasoning.
2026-01-15 19:32:12 +08:00
hkfires
5a77b7728e
refactor(thinking): improve budget clamping and logging with provider/model context
2026-01-15 13:06:41 +08:00
hkfires
ed8b0f25ee
fix(thinking): use LookupModelInfo for model data
2026-01-15 13:06:41 +08:00
hkfires
6e4a602c60
fix(thinking): map reasoning_effort to thinkingConfig
2026-01-15 13:06:40 +08:00
hkfires
0b06d637e7
refactor: improve thinking logic
2026-01-15 13:06:39 +08:00
Luis Pater
b163f8ed9e
Fixed : #1004
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
feat(translator): add function name to response output item serialization
- Included `item.name` in the serialized response output to enhance output item handling.
2026-01-15 03:27:00 +08:00
adrenjc
5977af96a0
fix(antigravity): prevent corrupted thought signature when switching models
...
When switching from Claude models (e.g., Opus 4.5) to Gemini models
(e.g., Flash) mid-conversation via Antigravity OAuth, the client-provided
thinking signatures from Claude would cause "Corrupted thought signature"
errors since they are incompatible with Gemini API.
Changes:
- Remove fallback to client-provided signatures in thinking block handling
- Only use cached signatures (from same-session Gemini responses)
- Skip thinking blocks without valid cached signatures
- tool_use blocks continue to use skip_thought_signature_validator when
no valid signature is available
This ensures cross-model switching works correctly while preserving
signature validation for same-model conversations.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-13 18:24:05 +08:00
hkfires
220ca45f74
fix(codex): only override instructions when upstream provides them
2026-01-11 15:52:21 +08:00
hkfires
70a82d80ac
fix(codex): only override instructions in responses for OpenCode UA
2026-01-11 15:19:37 +08:00
hkfires
ac626111ac
feat(codex): add OpenCode instructions based on user agent
2026-01-11 13:36:35 +08:00
extremk
5bb9c2a2bd
Add candidate count parameter to OpenAI request
2026-01-10 18:50:13 +08:00
extremk
0b5bbe9234
Add candidate count handling in OpenAI request
2026-01-10 18:49:29 +08:00
extremk
14c74e5e84
Handle 'n' parameter for candidate count in requests
...
Added handling for the 'n' parameter to set candidate count in generationConfig.
2026-01-10 18:48:33 +08:00
extremk
6448d0ee7c
Add candidate count handling in OpenAI request
2026-01-10 18:47:41 +08:00
extremk
b0c17af2cf
Enhance Gemini to OpenAI response conversion
...
Refactor response handling to support multiple candidates and improve parameter management.
2026-01-10 18:46:25 +08:00
Luis Pater
4d7f389b69
Fixed : #941
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translator): ensure fallback to valid originalRequestRawJSON in response handling
2026-01-10 01:01:09 +08:00
hkfires
ee62ef4745
refactor(logging): clean up oauth logs and debugs
2026-01-09 11:20:55 +08:00
Luis Pater
d47b7dc79a
refactor(response): enhance parameter handling for Codex to Claude conversion
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
2026-01-09 05:20:19 +08:00
Luis Pater
3d01b3cfe8
Merge pull request #553 from XInTheDark/fix/builtin-tools-web-search
...
fix(translator): preserve built-in tools (web_search) to Responses API
2026-01-09 04:40:13 +08:00
Luis Pater
8f8dfd081b
Merge pull request #850 from can1357/main
...
feat(translator): add developer role support for Gemini translators
2026-01-05 11:27:24 +08:00
Luis Pater
8edbda57cf
feat(translator): add thoughtSignature to node parts for Gemini and Antigravity requests
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
Enhanced node structure by including `thoughtSignature` for inline data parts in Gemini OpenAI, Gemini CLI, and Antigravity request handlers to improve traceability of thought processes.
2026-01-05 09:25:17 +08:00
can1357
6762e081f3
feat(translator): add developer role support for Gemini translators
...
Treat OpenAI's "developer" role the same as "system" role in request
translation for gemini, gemini-cli, and antigravity backends.
2026-01-03 21:01:01 +01:00
Luis Pater
7815ee338d
fix(translator): adjust message_delta emission boundary in Claude-to-OpenAI conversion
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
Fixed incorrect boundary logic for `message_delta` emission, ensuring proper handling of usage updates and `emitMessageStopIfNeeded` within the response loop.
2026-01-04 01:36:51 +08:00
hkfires
2d2f4572a7
fix(translator): remove unnecessary whitespace trimming in reasoning text collection
2026-01-01 12:39:09 +08:00
hkfires
8f4c46f38d
fix(translator): emit tool_result messages before user content in Claude-to-OpenAI conversion
2026-01-01 11:11:43 +08:00
hkfires
b6ba51bc2a
feat(translator): add thinking block and tool result handling for Claude-to-OpenAI conversion
2026-01-01 09:41:25 +08:00
Luis Pater
c6b0e85b54
Fixed : #790
...
fix(gemini): include full text in response output events
2025-12-30 20:44:13 +08:00
Luis Pater
d8fc485513
fix(translators): correct key path for system_instruction.parts in Claude request logic
2025-12-29 11:54:26 +08:00
Luis Pater
7646a2b877
Fixed : #749
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translators): ensure `gjson.String` content is non-empty before setting `parts` in OpenAI request logic
2025-12-28 00:54:26 +08:00
Luis Pater
c281f4cbaf
Fixed : #747
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translators): rename and integrate `usageMetadata` as `cpaUsageMetadata` in Claude processing logic
2025-12-27 22:02:11 +08:00
Luis Pater
72274099aa
Fixed : #738
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translators): refine prompt token calculation by incorporating cached tokens in Claude response handling
2025-12-27 03:56:11 +08:00
Luis Pater
dcae098e23
Fixed : #736
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translators): handle gjson string types in Claude request processing to ensure consistent content parsing
2025-12-27 01:25:47 +08:00
Luis Pater
33e53a2a56
fix(translators): ensure correct handling and output of multimodal assistant content across request handlers
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
2025-12-26 05:08:04 +08:00
Luis Pater
3f949b7f84
Merge pull request #704 from tinyc0der/add-index
...
fix(openai): add index field to image response for LiteLLM compatibility
2025-12-25 21:35:12 +08:00
TinyCoder
a7fc2ee4cf
refactor(image): avoid using json.Marshal
2025-12-25 14:21:01 +07:00
Luis Pater
06ad527e8c
Fixed : #696
...
docker-image / docker (push) Has been cancelled
goreleaser / goreleaser (push) Has been cancelled
fix(translators): adjust prompt token calculation by subtracting cached tokens across Gemini, OpenAI, and Claude handlers
2025-12-24 23:29:18 +08:00
TinyCoder
671558a822
fix(openai): add index field to image response for LiteLLM compatibility
...
LiteLLM's Pydantic model requires an index field in each image object.
Without it, responses fail validation with "images.0.index Field required".
2025-12-24 17:43:31 +07:00