Open josepablog opened 1 month ago
would love a pr to fix this
Would you mind pointing me to some files? I can certainly try if I get a chance
On Thu, Oct 17, 2024 at 6:29 PM Jason Liu @.***> wrote:
would love a pr to fix this
— Reply to this email directly, view it on GitHub https://github.com/instructor-ai/instructor/issues/1085#issuecomment-2421039076, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN7KAI4L23K7XKAQBZJN3TZ4BP7LAVCNFSM6AAAAABQC3MZ32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRGAZTSMBXGY . You are receiving this because you authored the thread.Message ID: @.***>
What Model are you using?
Describe the bug
Doesn't seem the tools are being sent to (Bedrock) Anthropic correctly. For instance, if I set
set_verbose=True
on the README example, I can see thattool_choice
is not being sent:Per Anthropic's [documentation](https://docs.anthropic.com/en/docs/build-with-claude/tool-use] the default is:
Without this, in more complicated examples, Claude is not obliged to generate a valid JSON.