Skip to content

Fix UnboundLocalError in generate_llm_compiler_prompt function#8

Open
Ashad001 wants to merge 1 commit into
SqueezeAILab:mainfrom
Ashad001:Ashad001-patch-2
Open

Fix UnboundLocalError in generate_llm_compiler_prompt function#8
Ashad001 wants to merge 1 commit into
SqueezeAILab:mainfrom
Ashad001:Ashad001-patch-2

Conversation

@Ashad001
Copy link
Copy Markdown

@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