devika icon indicating copy to clipboard operation
devika copied to clipboard

Groq.__init__() missing 1 required positional argument: 'api_key'

Open breax1 opened this issue 10 months ago • 1 comments

Groq is unavailable. There is no response over the interface, when I send a query with Postman I get the following error.

24.03.27 14:50:23: root: INFO : /api/execute-agent POST 24.03.27 14:50:23: root: DEBUG : /api/execute-agent POST - Response: {"message":"Started Devika Agent"}

project='test' state_stack_json='[{"internal_monologue": null, "browser_session": {"url": null, "screenshot": null}, "terminal_session": {"command": null, "output": null, "title": null}, "step": null, "message": null, "completed": false, "agent_is_active": true, "token_usage": 7427, "timestamp": "2024-03-27 08:14:22"}]' id=1 Exception in thread Thread-650 (): Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/breax/devike1/devika/devika.py", line 52, in target=lambda: Agent(base_model=base_model).execute(prompt, project_name) File "/home/breax/devike1/devika/src/agents/agent.py", line 266, in execute plan = self.planner.execute(prompt, project_name_from_user) File "/home/breax/devike1/devika/src/agents/planner/planner.py", line 70, in execute response = self.llm.inference(prompt, project_name) File "/home/breax/devike1/devika/src/llm/llm.py", line 74, in inference response = Groq().inference(self.model_id, prompt).strip() TypeError: Groq.init() missing 1 required positional argument: 'api_key'

breax1 avatar Mar 27 '24 11:03 breax1

Already raised PR which solves this issue. PR : #193

rajakumar05032000 avatar Mar 27 '24 12:03 rajakumar05032000

Fixed in #193, thanks! 🙌

mufeedvh avatar Mar 30 '24 07:03 mufeedvh