Commit 6279123
fix(oci): drop dead Cohere toolChoice field and emit GENERIC tool-call dicts inline
- Remove the unreachable toolChoice field from CohereChatRequest. The
Cohere param map explicitly marks tool_choice as unsupported, so the
field can never be populated through the normal optional_params flow
and only confused the public model surface.
- Build GENERIC stream tool-call dicts inline (id/type/function shape)
instead of round-tripping through ChatCompletionMessageToolCall and
model_dump(). Matches handle_cohere_stream_chunk so downstream
stream-mergers see the same minimal payload regardless of which
vendor produced the chunk.
Co-authored-by: Yassin Kortam <[email protected]>1 parent b1febaa commit 6279123
2 files changed
Lines changed: 25 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
439 | 446 | | |
440 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
441 | 458 | | |
442 | 459 | | |
443 | 460 | | |
| |||
449 | 466 | | |
450 | 467 | | |
451 | 468 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 469 | + | |
457 | 470 | | |
458 | 471 | | |
459 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
336 | 339 | | |
337 | 340 | | |
338 | 341 | | |
| |||
0 commit comments