Commit c23e31d
committed
fix: guard against None after Mapping extraction, prevent request_params overriding core fields
- Add second None check in _normalize_token_id_sequence after extracting
from a Mapping, since .get() can return None even when the key exists
- Move request_params spread before explicit keys (model, prompt,
temperature, max_tokens, logprobs) so they cannot be silently
overridden by stray entries in request_params
Made-with: Cursor1 parent b7c0cb0 commit c23e31d
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
| 352 | + | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
355 | | - | |
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
| |||
0 commit comments