Commit 58a2155
fix: don't send thinking params to official OpenAI API (#115)
The OpenAI-compatible provider was sending `thinking`, `enable_thinking`,
and `chat_template_kwargs` parameters to all endpoints including the
official OpenAI API, which rejects unrecognized arguments with a 400 error.
These params are now only sent to local/compatible servers (LM Studio,
llama.cpp, vLLM, etc.).
Closes #115
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8a2fe11 commit 58a2155
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 101 | | |
106 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments