Files
CC-Switch/src-tauri/src/proxy
Hemilt0n f38facd430 fix(proxy): use max_completion_tokens for o1/o3 series models (#1451)
* fix(proxy): use max_completion_tokens for o1/o3 series models

When converting Anthropic requests to OpenAI format for o1/o3 series
models (like o1-mini, o3-mini), use max_completion_tokens instead of
max_tokens to avoid unsupported_parameter errors.

Fixes #1448

* fix: revert incorrect o-series max_completion_tokens in Responses API path

Responses API uses max_output_tokens for all models including o-series.
The o-series max_completion_tokens fix should only apply to Chat Completions API.

---------

Co-authored-by: Hajen Teowideo <hajen.teowideo@example.com>
Co-authored-by: Jason Young <44939412+farion1231@users.noreply.github.com>
Co-authored-by: Jason <farion1231@gmail.com>
2026-03-15 20:39:17 +08:00
..
2025-12-31 22:57:00 +08:00
2026-01-11 20:50:54 +08:00
2026-03-08 19:42:18 +08:00
2025-12-05 11:26:41 +08:00
2026-03-08 19:42:18 +08:00
2025-12-05 11:26:41 +08:00
2025-12-31 22:57:00 +08:00