Skip to content

Commit

Permalink
style check
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhavnoobcoder authored Oct 24, 2024
1 parent db821f0 commit a0ab6af
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions swarms/structs/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,14 +803,8 @@ def _run(
self.memory_query(task_prompt)

# Generate response using LLM
response_args = (
(task_prompt, *args)
if img is None
else (task_prompt, img, *args)
)
response = self.call_llm(
*response_args, **kwargs
)
response = self.llm(task_prompt, *args, **kwargs)


# Check if response is a dictionary and has 'choices' key
if isinstance(response, dict) and 'choices' in response:
Expand Down

0 comments on commit a0ab6af

Please sign in to comment.