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 UnboundLocalError in generate_llm_compiler_prompt function #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ashad001
Copy link

@Ashad001 Ashad001 commented Nov 5, 2024

This PR resolves an UnboundLocalError that occurred when referencing i outside its scope in the generate_llm_compiler_prompt function. Instead of relying on i from the loop, which could be undefined if tools is empty, we now use len(tools) directly to add the JOIN_DESCRIPTION.

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