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: Initialize the tool_response #218

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

Teagan42
Copy link
Contributor

The tool_response variable is initialized within the for loop which iterates over the function calls returned by the LLM. However this variable is referenced outside this loop if certain configuration options are set. This means if the LLM does not call a tool function, but the config is set up as multi-turn, you get an error.

FIxes issue: #186

@acon96 acon96 merged commit bf0ff32 into acon96:develop Sep 14, 2024
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