Skip to content

fix: complete format conversion compatibility#180

Open
mxyhi wants to merge 3 commits intomainfrom
fix/anthropic-responses-completeness
Open

fix: complete format conversion compatibility#180
mxyhi wants to merge 3 commits intomainfrom
fix/anthropic-responses-completeness

Conversation

@mxyhi
Copy link
Owner

@mxyhi mxyhi commented Mar 18, 2026

Summary

  • complete Anthropic /v1/messages <-> OpenAI /v1/responses compatibility instead of stopping at minimal viability
  • fill the remaining format-conversion gaps found by comparing token_proxy against litellm for Gemini and Chat/Responses bridging
  • preserve Gemini parametersJsonSchema, Gemini functionResponse call pairing, and Chat -> Gemini streaming tool-call accumulation semantics
  • map Chat -> Responses advanced params including reasoning_effort, previous_response_id, web_search_options, and preserve structured tool output
  • add contract tests for request translation, buffered response translation, and streaming conversion behavior

Verification

  • cargo test -p token_proxy_core --lib -- --nocapture

mxyhi and others added 2 commits March 18, 2026 17:04
Map Anthropic /v1/messages and OpenAI /v1/responses more completely across request translation, buffered response translation, and streaming compatibility.

Add contract coverage for reasoning, reasoning summaries, structured output, context management, tool mapping, and Anthropic thinking blocks.

Co-authored-by: Codex <noreply@openai.com>
Fill the remaining compatibility gaps found by comparing token_proxy with litellm conversion logic.

This covers Gemini tool schema and tool-result bridging, Chat to Gemini streaming tool-call accumulation, and Chat to Responses advanced parameter plus structured tool output mapping.

Co-authored-by: Codex <noreply@openai.com>
@mxyhi mxyhi changed the title fix: complete anthropic messages <-> responses compatibility fix: complete format conversion compatibility Mar 18, 2026
更新内容:
- 在 `AGENTS.md` 的“参考项目”部分新增一项:
  - `代理转发/转换参考[litellm](.reference/litellm)`

如果你需要,我也可以继续基于这个 diff:
- 生成规范的 commit message
- 更新相关文档说明
- 检查该参考项是否还需要在其他索引文档中同步添加
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