We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OpenAI allows a single ChatCompletionMessage to contain multiple function calls, as is presented here: https://platform.openai.com/docs/guides/function-calling/parallel-function-calling. However, the current implementation only allows for a single Function Call to be present per response.
from source:
pub function_call: Option<ChatCompletionFunctionCall>
(https://github.com/rellfy/openai/blob/master/src/chat.rs#L60)
Given my lack of knowledge about the API in use, changing
to
pub function_call: Vec<ChatCompletionFunctionCall>
should resolve the problem, though I am not familiar with the function calling API enough to be sure that that would work
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
OpenAI allows a single ChatCompletionMessage to contain multiple function calls, as is presented here:
https://platform.openai.com/docs/guides/function-calling/parallel-function-calling.
However, the current implementation only allows for a single Function Call to be present per response.
from source:
(https://github.com/rellfy/openai/blob/master/src/chat.rs#L60)
Solution
Given my lack of knowledge about the API in use, changing
to
should resolve the problem, though I am not familiar with the function calling API enough to be sure that that would work
Alternatives
No response
The text was updated successfully, but these errors were encountered: