stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.5k stars 2.4k forks source link

Getting error when using Devika with Claude 3 #624

Open LeonMatch opened 4 months ago

LeonMatch commented 4 months ago

Describe your issue

I am sending a simple test request to Devika to: "Write a function that outputs the fibonacci sequence". I am using model: Claude 3 Opus. I get an error: root: ERROR : Connection error. I see that I was charged for this request in my Anthropic dashboard, meaning it went through? At what point does this error occur then and how to remediate it please?

Log

24.07.08 19:02:06: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': True, 'message': "Thanks for the request! I'll create a step-by-step plan to write a function that outputs the Fibonacci sequence.", 'timestamp': '2024-07-08 19:02:06'}} 24.07.08 19:02:06: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': True, 'message': '{}', 'timestamp': '2024-07-08 19:02:06'}}

context_keywords :: ['fibonacci', 'generate', 'sequence', 'function', 'implement']

24.07.08 19:02:07: root: INFO : SOCKET tokens MESSAGE: {'token_usage': 1370} Model: Claude 3 Opus, Enum: CLAUDE 24.07.08 19:02:08: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '0.00'} 24.07.08 19:02:09: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '0.52'} 24.07.08 19:02:09: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '1.02'} 24.07.08 19:02:10: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '1.53'} 24.07.08 19:02:10: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '2.03'} 24.07.08 19:02:11: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '2.54'} 24.07.08 19:02:11: root: INFO : SOCKET inference MESSAGE: {'type': 'time', 'elapsed_time': '3.05'} 24.07.08 19:02:11: root: ERROR : Connection error. 24.07.08 19:02:11: root: INFO : SOCKET inference MESSAGE: {'type': 'error', 'message': 'Connection error.'}

Configuration

- OS: Windows
- Python version: 3.11.9
- Node version: 18.16.1
- bun version: 1.1.17
- search engine: Bing
- Model: Claude 3 Opus