Skip to content

Conversation

@gaborvar
Copy link

Enables model-initiated function calls by allowing tool call related parameters to pass though the helper.
Aligns common error conditions with OpenAI documentation which allows tool related messages to have certain combination of arguments.
Limitation: tool related messages may have an impact on token counts. The goal of this fix is limited to enabling tool calls; token counting may not be accurate.

tool_calls and tool_call_id are needed to correctly inform the model about historic tool calls. Also fixed a related error message.
For tool call requests by the model, accept their typical parameters rather than throwing an error. The goal of this fix is limited to preventing undue errors: impact of tool calls on token counting is only a guess which needs to revised.
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.

1 participant