Commit 034cfd5
fix: pop model_tokens so it is not forwarded to the model client
On the plain llm-config path, _create_llm read model_tokens but never
removed it from llm_params, so it was splatted into init_chat_model and
forwarded to the client. With ChatOpenAI (any OpenAI-compatible base_url)
this surfaced as: Completions.create() got an unexpected keyword argument
'model_tokens'. Pop the key after consuming it, matching the model_instance
path which already returns before the key can leak.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9ad7e84 commit 034cfd5
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
| |||
0 commit comments