Commit d523354
committed
Fix token param handling for official GPT-5 model IDs
Apply max_completion_tokens only to official GPT-5 model IDs.
Keep provider-prefixed names such as openai/gpt-5.2 on the
max_tokens path so namespaced model IDs are not treated as
official OpenAI GPT-5 identifiers.1 parent fade0ea commit d523354
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- src/services/apis
- tests/unit/services/apis
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments