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

Tool call transparency fix #21

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

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