Commit 13ce9b3
authored
refactor(ark): remove explicit tool choice assignment from chat model (#695)
Removed explicit `toolChoice` field assignment in tool binding methods
for both standard ChatModel and ResponsesAPIChatModel.
Changes:
- Remove `toolChoice = &tc` assignment in WithTools(), BindTools(), and
BindForcedTools() methods in chatmodel.go
- Remove `toolChoice` assignment in ResponsesAPIChatModel.WithTools()
method in responses_api.go
- Simplify tool binding logic by relying on default behavior instead of
explicit ToolChoiceAllowed/ToolChoiceForced settings
This change simplifies the codebase by removing redundant tool choice
configuration, allowing the underlying implementation to handle tool
choice behavior implicitly.1 parent 1332771 commit 13ce9b3
2 files changed
+0
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
467 | 465 | | |
468 | 466 | | |
469 | 467 | | |
470 | | - | |
471 | | - | |
472 | 468 | | |
473 | 469 | | |
474 | 470 | | |
475 | | - | |
476 | | - | |
477 | 471 | | |
478 | 472 | | |
479 | 473 | | |
| |||
484 | 478 | | |
485 | 479 | | |
486 | 480 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | 481 | | |
493 | 482 | | |
494 | 483 | | |
495 | 484 | | |
496 | 485 | | |
497 | 486 | | |
498 | 487 | | |
499 | | - | |
500 | 488 | | |
501 | 489 | | |
502 | 490 | | |
503 | | - | |
504 | 491 | | |
505 | 492 | | |
506 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1608 | 1608 | | |
1609 | 1609 | | |
1610 | 1610 | | |
1611 | | - | |
1612 | 1611 | | |
1613 | 1612 | | |
1614 | 1613 | | |
1615 | | - | |
1616 | 1614 | | |
1617 | 1615 | | |
1618 | 1616 | | |
| |||
0 commit comments