* fix(relay): treat gpt-5 and later generations alike for max_completion_tokens IsOpenAIGPT5Model matched on the literal prefix "gpt-5", so gpt-6-astra (and every generation after it) fell through the gpt-5 request rules: max_tokens was forwarded as-is and the provider rejected it with "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead." The same gap left temperature, top_p and logprobs untouched, each of which the provider also rejects, and made the channel test button report a 400 for a healthy deployment. Match on the major version instead (gpt-<n>... with n >= 5). Callers are unchanged: ConvertOpenAIRequest, GetSystemRoleName, buildTestRequest and the health check all go through this one helper. buildTestRequest now sends max_completion_tokens for these models directly instead of relying on the later conversion. gpt-4.1, gpt-4o, gpt-oss, gpt-image and gpt-realtime names still do not match. Verified against Azure OpenAI gpt-6-astra (2026-09-03): with the old prefix max_tokens / temperature / top_p / logprobs each returned 400, while gpt-5.6-luna with the same payload returned 200. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bwz8o5UeoRtrtDusKaayp * fix(relay): separate OpenAI chat model compatibility rules --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: CaIon <i@caion.me>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| advancedcustom | Loading commit data... | |
| ai360 | Loading commit data... | |
| ali | Loading commit data... | |
| aws | Loading commit data... | |
| baidu | Loading commit data... | |
| baidu_v2 | Loading commit data... | |
| claude | Loading commit data... | |
| cloudflare | Loading commit data... | |
| codex | Loading commit data... | |
| cohere | Loading commit data... | |
| coze | Loading commit data... | |
| deepseek | Loading commit data... | |
| dify | Loading commit data... | |
| gemini | Loading commit data... | |
| jimeng | Loading commit data... | |
| jina | Loading commit data... | |
| lingyiwanwu | Loading commit data... | |
| minimax | Loading commit data... | |
| mistral | Loading commit data... | |
| mokaai | Loading commit data... | |
| moonshot | Loading commit data... | |
| newapi | Loading commit data... | |
| ollama | Loading commit data... | |
| openai | Loading commit data... | |
| openrouter | Loading commit data... | |
| palm | Loading commit data... | |
| perplexity | Loading commit data... | |
| replicate | Loading commit data... | |
| siliconflow | Loading commit data... | |
| sub2api | Loading commit data... | |
| submodel | Loading commit data... | |
| task | Loading commit data... | |
| tencent | Loading commit data... | |
| vertex | Loading commit data... | |
| volcengine | Loading commit data... | |
| xai | Loading commit data... | |
| xinference | Loading commit data... | |
| xunfei | Loading commit data... | |
| zhipu | Loading commit data... | |
| zhipu_4v | Loading commit data... | |
| adapter.go | Loading commit data... | |
| api_request.go | Loading commit data... | |
| api_request_getbody_test.go | Loading commit data... | |
| api_request_redirect_test.go | Loading commit data... | |
| api_request_test.go | Loading commit data... |