Commit 3c124a5
committed
fix(oci): uppercase tool type field for OCI V2 API compatibility
OCI Generative AI expects tool type as "FUNCTION" (uppercase) but the
SDK passes through the Cohere format "function" (lowercase), causing
a 400 error. Transform tool types to uppercase like we do for message
roles and content types.1 parent 2598c9a commit 3c124a5
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
760 | 766 | | |
761 | 767 | | |
762 | 768 | | |
| |||
0 commit comments