litellm icon indicating copy to clipboard operation
litellm copied to clipboard

Allow multiple tools in anthropic response

Open Xirider opened this issue 1 year ago • 3 comments

Currently in litellm's anthropic response only the first tool is extracted and the rest is ignored. This PR allows to also parse the rest of the tools.

Xirider avatar Mar 30 '24 17:03 Xirider

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 6:00pm

vercel[bot] avatar Mar 30 '24 17:03 vercel[bot]

Hey @Xirider could you share a test for this either here or in the test script for ci/cd - https://github.com/BerriAI/litellm/blob/ff9de34a5d4c48e7cd829f1e80988b80204ecbae/litellm/tests/test_completion.py#L133

krrishdholakia avatar Mar 30 '24 18:03 krrishdholakia

bump on this? @Xirider

krrishdholakia avatar Apr 03 '24 16:04 krrishdholakia

I would be great to have this as parallel function calling is quite efficient.

widike avatar Apr 14 '24 22:04 widike

I'm currently quite busy. So feel free to take it over!

Xirider avatar Apr 15 '24 08:04 Xirider

Nevermind, I think this is not longer necessary since anthropic enables their built in function calling

Xirider avatar Apr 15 '24 08:04 Xirider