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

Bug: Curator Does not Support Function Calling #328

Open
richardbespoke opened this issue Jan 8, 2025 · 0 comments
Open

Bug: Curator Does not Support Function Calling #328

richardbespoke opened this issue Jan 8, 2025 · 0 comments
Labels
task This is a task

Comments

@richardbespoke
Copy link

In openai_online_request_processor.py (should be the same for all openai request processors e.g. batch):

response_message = response["choices"][0]["message"]["content"]

This only handles the case when the effective output is at the "content" key which is most cases but for function calling the output would look like the following:

ChatCompletionMessage(content=None, role='assistant', function_call=None, tool_calls=[ChatCompletionMessageToolCall(id='call_xb7QwwNnx90LkmhtlW0YrgP2', function=Function(arguments='{"location":"Glasgow, Scotland","format":"celsius"}', name='get_current_weather'), type='function')])

We should add a case to handle tool_calls if its value is non-empty.

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

No branches or pull requests

2 participants