-
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
feat(tools): Basic tool support for OpenAI models #1447
Conversation
really helpful |
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.
Type checks seems to fail in src/lib/server/textGeneration/tools.ts
with
Property 'correlationKey' is missing in type '{ name: string; parameters: Record<string, string>; }' but required in type 'ToolCall'.ts(2741)
could you take a look ?
took me a while to find this one lol
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 PR! I fixed a couple things and made it a bit more robust but I believe it's ready to go now. I'll merge but if you see issues with this please let me know 🚀
* feat(tools): Basic tool support for OpenAI models * feat(tools): Basic tool support for OpenAI models * fix: tools with document input (not image) * fix: double yield of streaming tokens * fix: boolean parameter processing error took me a while to find this one lol * feat: throw error if using tools in `completions` mode * feat: fix image processing in tools mode * fix: remove correlationKey and clean up types --------- Co-authored-by: Jacob Gladish <jacob_gladish@comcast.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
No description provided.