Skip to content
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

Pr 2954 ci branch #3006

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Pr 2954 ci branch #3006

wants to merge 8 commits into from

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Feb 10, 2025

This PR reopens #2954 and adds some small changes to rely on serde where possible. Thank you @Trofleb for the changes!

This PR aligns the tool calling output to return an array of tool calls as well as serialize the tool arguments as a JSON string.

Important

This PR contains breaking changes and aligns the tool choice output to match openai

Trofleb and others added 5 commits February 7, 2025 17:13
Necessary to keep compatibility with openai. The usage of tgi with openai compatible libraries for function calling was broken.
The streaming API for tool calling now starts when the name is parsed and then send arguments as token are generated and stops properly.
@drbh drbh mentioned this pull request Feb 10, 2025
4 tasks
@Trofleb
Copy link

Trofleb commented Feb 10, 2025

Hi @drbh

Thanks for moving forward with my PR !

However, there's something I'm not understanding. Your changes seem to remove my fixes related to streaming. I haven't had time to test the branch but by reading your changes it seems the tool calls will still be impossible to use with streaming using an open ai client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants