response_args should include image

- other functionality remains same , code is just slightly rearranged if anything .
pull/611/head
Sambhav Dixit 3 months ago committed by GitHub
parent 63e00b817e
commit c60789eb54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -803,7 +803,14 @@ class Agent:
self.memory_query(task_prompt)
# Generate response using LLM
response = self.llm(task_prompt, *args, **kwargs)
response_args = (
(task_prompt, *args)
if img is None
else (task_prompt, img, *args)
)
response = self.call_llm(
*response_args, **kwargs
)
# Check and execute tools
if self.tools is not None:

Loading…
Cancel
Save