-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anthropic Tool Support #1594
Anthropic Tool Support #1594
Conversation
the anthropic API does not yet include a "DocumentBlock" for support PDFs, so an extended type has been added to the endpoint.
…ature/anthropic-tool-support
…nsconsulting/llmindset-hug-ui into feature/anthropic-pdf-beta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contrib! @evalstate
I took the liberty of removing the passing of tools in textGeneration/index.ts
since that broke other endpoint types. Instead I deduce the tools from the tool results. (this is fine since we can't actually do sequential tool calling in chat-ui yet)
Tool Calling support for the Anthropic Endpoint.
Implementation Notes
This brings the AnthropicEndpoint to a similar level of capability as the other tool calling endpoints.
Before continuing @nsarrazin I was really hoping to get some feedback on the following - especially as they relate to such sensitive areas of chat-ui:
Current Limitations
calculate 15 * 33 * sqrt(4044) and create an image of a cat in space.
reliably causes the below error for Llama 3.1 in https://huggingface.co/chat/. I haven't reproduced locally, but will raise a separate issue but including here as related to this discussion on tool handling.Prompting Notes
If you need to use more than one tool, prefer to call them in parallel if the output from one does not depend on the other.
seems to help with that a lot.