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

Fix tool call response to adhere to OpenAI spec #2949

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

Conversation

Datta0
Copy link

@Datta0 Datta0 commented Jan 24, 2025

What does this PR do?

  1. OpenAI tool call arguments field is supposed to be string. TGI seems to output a JSON. Fix it.
  2. ToolCalls in streaming case should be a list of tool calls, TGI outputs singular tool call. So update the struct accordingly.

@Datta0 Datta0 marked this pull request as ready for review January 24, 2025 09:50
@Trofleb Trofleb mentioned this pull request Jan 24, 2025
4 tasks
@drbh drbh self-assigned this Jan 24, 2025
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