Closed DEM1TASSE closed 6 months ago
Can you try to:
Can you try to:
- clear out the container (any from opendevin start with sandbox-), restart docker, maybe even the image
- run separately: make start-backend, make start-frontend In different terminals.
I've tried these but seems not work
Errors:
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
ERROR:
OpenAIException - Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/custom_httpx/azure_dall_e_2.py", line 133, in handle_request
return super().handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/custom_httpx/azure_dall_e_2.py", line 133, in handle_request
return super().handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/main.py", line 997, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/main.py", line 970, in completion
response = openai_chat_completions.completion(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 422, in completion
raise OpenAIError(status_code=500, message=traceback.format_exc())
litellm.llms.openai.OpenAIError: Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/custom_httpx/azure_dall_e_2.py", line 133, in handle_request
return super().handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/d/ζζ―ε¦δΉ /OpenDevin/opendevin/controller/agent_controller.py", line 135, in step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/d/ζζ―ε¦δΉ /OpenDevin/agenthub/planner_agent/agent.py", line 42, in step
resp = self.llm.completion(messages=messages)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/d/ζζ―ε¦δΉ /OpenDevin/opendevin/llm/llm.py", line 58, in wrapper
resp = completion_unwrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 329, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 326, in completion
response = self.function_with_fallbacks(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 1420, in function_with_fallbacks
raise original_exception
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 1345, in function_with_fallbacks
response = self.function_with_retries(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 1497, in function_with_retries
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 1463, in function_with_retries
response = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 387, in _completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/router.py", line 370, in _completion
response = litellm.completion(
^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2947, in wrapper
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2845, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/main.py", line 2129, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 8526, in exception_type
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 7390, in exception_type
raise APIError(
litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/custom_httpx/azure_dall_e_2.py", line 133, in handle_request
return super().handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
OBSERVATION:
OpenAIException - Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request
raise exc from None
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/custom_httpx/azure_dall_e_2.py", line 133, in handle_request
return super().handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
But in my environment when I try to run this test the connection works:
from openai import OpenAI
client = OpenAI(
api_key='', # this is also the default, it can be omitted
)
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
]
)
print(response.choices[0].message.content)
maybe something related to litellm?
also have tried to run this:
import warnings
warnings.filterwarnings("ignore")
import tomllib as toml
from litellm import completion
from datetime import datetime
file_path=r'config.toml'
config = toml.load(open(file_path,'rb'))
messages = [{ "content": "What is the meaning of life?","role": "user"}]
dt = datetime.now()
response = completion(model=config['LLM_MODEL'],
api_key=config['LLM_API_KEY'],
base_url=config.get('LLM_BASE_URL'),
messages=messages)
print(response.choices[0].message.content)
dt2 = datetime.now()
print(f"Time taken: {(dt2-dt).total_seconds():.1f}s")
seems good:
The meaning of life is a deep and complex philosophical question that has been debated for centuries. Different people and cultures have different beliefs about the purpose and meaning of life. Some may find meaning in relationships, personal achievements, or spiritual fulfillment, while others may find meaning in contributing to the well-being of others or pursuing knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual must explore and define for themselves.
Time taken: 2.9s
@DEM1TASSE can please do:
git log -n1
I had the same issue, I tried moving to gpt-4-turbo-preview and it solved. The issue I faced with was due to context window size.
@DEM1TASSEε―δ»₯θ―·θΏζ ·εοΌ
git log -n1
commit e9121b78fed0b5ef36718ca0bf59588c0b094b86 (HEAD -> main)
Author: Xingyao Wang <xingyao6@illinois.edu>
Date: Sun Apr 7 16:07:59 2024 +0800
I had the same issue, I tried moving to gpt-4-turbo-preview and it solved. The issue I faced with was due to context window size.
Thanks but it seems not work in my env
Ah, that's 2 days ago. Interesting... I am not sure what that was exactly. Can you please do
git pull
Clean up and remake? Make sure, at least, you stop docker and restart it?
Actually, maybe that's exactly the problem, because meanwhile, we have changed both the sandbox code and the docker image, and the code is pulling latest image. So you may have had the newest image with the older code.
Actually, maybe that's exactly the problem, because meanwhile, we have changed both the sandbox code and the docker image, and the code is pulling latest image. So you may have had the newest image with the older code.
I pull the newest version and there still have openai connection errors
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 931, in _request
response = self._client.send(
^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion
raise e
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion
response = openai_client.chat.completions.create(**data, timeout=timeout) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 955, in _request
return self._retry_request(
^^^^^^^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request
return self._request(
^^^^^^^^^^^^^^
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 965, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request
with map_httpcore_exceptions():
File "/home/demi/.pyenv/versions/3.11.0/lib/python3.11/contextlib.py", line 155, in exit
self.gen.throw(typ, value, traceback)
File "/home/demi/.cache/pypoetry/virtualenvs/opendevin-lxH5SSh6-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol
This trace contains .pyenv cache. Is that necessary on your machine? We used pyenv before switching to poetry, but we don't now. How about renaming it to .pyenv-old for example?
Also, poetry cache clear . --all
and rebuild, maybe it clears it.
Sort of example (not very good and a little old): https://community.openai.com/t/getting-error-with-openai-1-3-5-python-openai-api-connection-error/531090/4
I just had a "connection error" myself, and it turned out that I was using some vars from an old .env file. Oops.
I just had this happen. With this precise stack trace. It looks like the completion call doesn't get a var it needs or gets the wrong vars. Oddly, it wasn't a new installation that got it, an older one updated to main.
@DEM1TASSE lets get a hammer. Can you please make sure to stash any local changes you may have made (config.toml will not be affected), then
git reset --hard e095f8b8a31c144e87e4e0ac87abf19f3a87a7cf
make build
make run
Does that work?
@rbren I'm confused, how is this the same as my issue #952?
nvm just tired. I see. My first error was an invalid URL error so, could be that
I'm getting the same error stack on a fresh installation
I just had this happen. With this precise stack trace. It looks like the completion call doesn't get a var it needs or gets the wrong vars. Oddly, it wasn't a new installation that got it, an older one updated to main.
@DEM1TASSE lets get a hammer. Can you please make sure to stash any local changes you may have made (config.toml will not be affected), then
git reset --hard e095f8b8a31c144e87e4e0ac87abf19f3a87a7cf make build make run
Does that work?
That commit does not exist.
fatal: Could not parse object 'e095f8b8a31c144e87e4e0ac87abf19f3a87a7cf'.
That commit does not exist.
fatal: Could not parse object 'e095f8b8a31c144e87e4e0ac87abf19f3a87a7cf'.
Sorry, try
git reset --hard 3c4b3eddc01b5e6be13ba0757cc917e4e10a2ae1
make build
make run
And please do tell if that seems to solve the issue.
It worked. I'm past that error and now I have my own issues with quota
It should have a make clean
to run on these cases, before rebuilding
I don't know which files to remove
Just the docker image and container?
@kroggen yes, if your issue is the user in the docker, as you said in another issue. I don't think it's the same with this issue.
I was having the same issue above Tried the command above but now it says it cannot downgrade
- Downgrading joblib (1.4.0 -> 1.3.2): Failed
Why is it so hard to install this thing?
It has been 3 f**ing hours already!!!
@ZachHandley @DEM1TASSE I replicated the issue, and this is what fixed it:
DEM1TASSE Were you using the history feature? Re-loading history, re-using the same window?
I was having the same issue above Tried the command above but now it says it cannot downgrade
- Downgrading joblib (1.4.0 -> 1.3.2): Failed
Why is it so hard to install this thing?
It has been 3 f**ing hours already!!!
Can you open a new issue please? New issues have a template where we ask for information, to help us figure it out.
There is no reason. It only happened because of the git reset
to previous commit. Once the other problem is fixed the downgrade will no longer be needed.
I reformatted the Linux server and starting everything from scratch, now without root and also using the commit above (it should be on the readme BTW)
And now finally it is working!
Although it is very dumb using gpt-4-turbo-preview
. I asked to make a repetitive task, it did 2 and then in next iterations it said it is not able to do that, even having done it twice before. Then it keeps repeating it cannot do that and I have to Control+C otherwise it would not exit the loop.
Can we configure the temperature?
@ZachHandley @DEM1TASSE I replicated the issue, and this is what fixed it:
- please pull this branch FE configΒ #960
- close the browser, stop opendevin backend, frontend
- use another browser, or clear local storage
- make build
- make start-backend, allow it to finish until it says uvicorn ready or so
- make start-frontend
- open localhost:3001
DEM1TASSE Were you using the history feature? Re-loading history, re-using the same window?
What is the 'history feature' mean? Every time I close the browser and open it again, and I choose 'start a new session' instead of 'load old'. I'll try these steps rn
@ZachHandley @DEM1TASSE I replicated the issue, and this is what fixed it:
- please pull this branch FE configΒ #960
- close the browser, stop opendevin backend, frontend
- use another browser, or clear local storage
- make build
- make start-backend, allow it to finish until it says uvicorn ready or so
- make start-frontend
- open localhost:3001
DEM1TASSE Were you using the history feature? Re-loading history, re-using the same window?
OMG it actually works, i've stuck in this step for 3 days... Thank you so much!
and could i ask how to close the browser and frontend/backend correctly? Everytime I got this:
@DEM1TASSE You can clear the browser, but maybe also delete the ./cache folder. It has a file sessions.json which might still trigger this question. But either way if you're on the branch it shouldn't interfere anymore with authentication. That is a bug, and it's being fixed.
Can you please confirm that you are using the branch https://github.com/OpenDevin/OpenDevin/pull/960 ?
@DEM1TASSE You can clear the browser, but maybe also delete the ./cache folder. It has a file sessions.json which might still trigger this question. But either way if you're on the branch it shouldn't interfere anymore with authentication. That is a bug, and it's being fixed.
Can you please confirm that you are using the branch #960 ?
Yes I'm using #960, but I'm not sure whether the change is due to this branch or because I cleared the poetry cache.
Delete sessions.json
can solve the problem above.
@ZachHandley Please pull master, and clean up your environment, in particular of ./cache folder and browser cache. (or try a different browser for a test). Close all older browser tabs in use with opendevin, that kind of stuff, or clear up as suggested above.
I think the Unsupported Protocol issue should be gone with the new master and no leftovers in caches. If it doesn't for you, or you see other issues, please open another issue.
Hello i am facing the same issue, however i have upgrade the chatGPT 3.5 to ChatGpt 4 but still not working.
i followed theses steps
git pull
i have closed the browser, stop opendevin backend, frontend
i have used another browser, and clear local storage for the browser
delete all the catch files in OpenDevin folder -- Done
make build - successfully..
make start-backend, allow it to finish until it says uvicorn ready or so -- this done successfully....
make start-frontend -- this done successfully....
open localhost:3001-- this done successfully....
`malam@Mass:~/OpenDevin$ make start-backend Starting backend... The currently activated Python version 3.10.12 is not supported by the project (^3.11). Trying to find and use a compatible version. Using python3.11 (3.11.0) /home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modellist" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ()
.
warnings.warn(
/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelname" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ()
.
warnings.warn(
/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_groupalias" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ()
.
warnings.warn(
/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelinfo" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ()
.
warnings.warn(
/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelid" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ()
.
warnings.warn(
modules.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 349/349 [00:00<00:00, 1.18MB/s]
config_sentence_transformers.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββ| 124/124 [00:00<00:00, 478kB/s]
README.md: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 94.8k/94.8k [00:00<00:00, 475kB/s]
sentence_bert_config.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 52.0/52.0 [00:00<00:00, 154kB/s]
config.json: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 743/743 [00:00<00:00, 6.23MB/s]
model.safetensors: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 133M/133M [00:12<00:00, 10.5MB/s]
tokenizer_config.json: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 366/366 [00:00<00:00, 2.26MB/s]
vocab.txt: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 232k/232k [00:00<00:00, 592kB/s]
tokenizer.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 711k/711k [00:00<00:00, 3.12MB/s]
special_tokens_map.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 125/125 [00:00<00:00, 864kB/s]
1_Pooling/config.json: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 190/190 [00:00<00:00, 521kB/s]
INFO: Started server process [2210]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:3000 (Press CTRL+C to quit)
22:46:05 - opendevin:ERROR: auth.py:18 - Error decoding token: Not enough segments
Traceback (most recent call last):
File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/jwt/api_jws.py", line 257, in _load
signing_input, crypto_segment = jwt.rsplit(b".", 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/malam/OpenDevin/opendevin/server/auth/auth.py", line 12, in get_sid_from_token
payload = jwt.decode(token, JWT_SECRET, algorithms=["HS256"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/jwt/api_jwt.py", line 210, in decode
decoded = self.decode_complete(
^^^^^^^^^^^^^^^^^^^^^
File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/jwt/api_jwt.py", line 151, in decode_complete
decoded = api_jws.decode_complete(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/jwt/api_jws.py", line 198, in decode_complete
payload, signing_input, header, signature = self._load(jwt)
^^^^^^^^^^^^^^^
File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/jwt/api_jws.py", line 260, in _load
raise DecodeError("Not enough segments") from err
jwt.exceptions.DecodeError: Not enough segments
INFO: 127.0.0.1:47154 - "GET /auth HTTP/1.1" 200 OK
INFO: ('127.0.0.1', 47170) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI3ZDdiZWFjMC0xNjg5LTQ5OTAtYTljNS0yNGI5MDEyOTZmYjkifQ.ESZTj7O_NshqzAhyBULF0AAiLy63a9y4XQj8p9flDEI" [accepted]
Starting loop_recv for sid: 7d7beac0-1689-4990-a9c5-24b901296fb9, False
INFO: connection open
INFO: 127.0.0.1:47178 - "GET /refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:47204 - "GET /messages/total HTTP/1.1" 200 OK
INFO: 127.0.0.1:47188 - "GET /configurations HTTP/1.1" 200 OK
INFO: 127.0.0.1:47210 - "GET /refresh-files HTTP/1.1" 200 OK
INFO: 127.0.0.1:47212 - "GET /configurations HTTP/1.1" 200 OK
INFO: 127.0.0.1:47228 - "GET /messages/total HTTP/1.1" 200 OK
22:46:06 - opendevin:INFO: sandbox.py:119 - Using workspace directory: /home/malam/OpenDevin/workspace
22:46:06 - opendevin:INFO: sandbox.py:332 - Container stopped
22:46:06 - opendevin:INFO: sandbox.py:367 - Container started
22:46:07 - opendevin:INFO: sandbox.py:383 - waiting for container to start: 1, container status: running
22:46:07 - opendevin:INFO: sandbox.py:210 - Connecting to opendevin@localhost via ssh. If you encounter any issues, you can try ssh -v -p 2222 opendevin@localhost
with the password '4eaec8dc-05c5-4333-a29b-cae18b902e15' and report the issue on GitHub.
22:46:08 - opendevin:INFO: sandbox.py:119 - Using workspace directory: /home/malam/OpenDevin/workspace
22:46:09 - opendevin:INFO: sandbox.py:210 - Connecting to opendevin@localhost via ssh. If you encounter any issues, you can try ssh -v -p 2222 opendevin@localhost
with the password 'e0fcd195-40b9-4193-b907-895613447aa0' and report the issue on GitHub.
============== STEP 0
PLAN: Hi
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
ERROR: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} Traceback (most recent call last): File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion response = openai_client.chat.completions.create(*data, timeout=timeout) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create return self._post( ^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 978, in _request return self._retry_request( ^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 978, in _request return self._retry_request( ^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 993, in _request raise self._make_status_error_from_response(err.response) from None openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 999, in completion raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 972, in completion response = openai_chat_completions.completion( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 420, in completion raise OpenAIError(status_code=e.status_code, message=str(e)) litellm.llms.openai.OpenAIError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/malam/OpenDevin/opendevin/controller/agent_controller.py", line 135, in step action = self.agent.step(self.state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/OpenDevin/agenthub/monologue_agent/agent.py", line 215, in step resp = self.llm.completion(messages=messages) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/OpenDevin/opendevin/llm/llm.py", line 37, in wrapper resp = completion_unwrapped(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2947, in wrapper raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2845, in wrapper result = original_function(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 2119, in completion raise exception_type( ^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 8526, in exception_type raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 7367, in exception_type raise RateLimitError( litellm.exceptions.RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} 22:48:34 - opendevin:ERROR: agent_controller.py:113 - Error in loop Traceback (most recent call last): File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 373, in completion response = openai_client.chat.completions.create(data, timeout=timeout) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create return self._post( ^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1213, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 902, in request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 978, in _request return self._retry_request( ^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 978, in _request return self._retry_request( ^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1026, in _retry_request return self._request( ^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 993, in _request raise self._make_status_error_from_response(err.response) from None openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 999, in completion raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 972, in completion response = openai_chat_completions.completion( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 420, in completion raise OpenAIError(status_code=e.status_code, message=str(e)) litellm.llms.openai.OpenAIError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/malam/OpenDevin/opendevin/controller/agent_controller.py", line 111, in start_loop finished = await self.step(i) ^^^^^^^^^^^^^^^^^^ File "/home/malam/OpenDevin/opendevin/controller/agent_controller.py", line 135, in step action = self.agent.step(self.state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/OpenDevin/agenthub/monologue_agent/agent.py", line 215, in step resp = self.llm.completion(messages=messages) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/OpenDevin/opendevin/llm/llm.py", line 37, in wrapper resp = completion_unwrapped(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2947, in wrapper raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2845, in wrapper result = original_function(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/main.py", line 2119, in completion raise exception_type( ^^^^^^^^^^^^^^^ File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 8526, in exception_type raise e File "/home/malam/.cache/pypoetry/virtualenvs/opendevin-8jU3_nnO-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 7367, in exception_type raise RateLimitError( litellm.exceptions.RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} `
any idea what is the reason?? Error during task loop.
Thank you
Describe the bug
I asked the agent to build a calculator, but it didn't give me any response, just stuck in the starting step.
Setup and configuration
Current version:
My config.toml and environment vars (be sure to redact API keys):
My model and agent (you can see these settings in the UI):
Commands I ran to install and run OpenDevin:
Steps to Reproduce: run the commands, input: build a calculator with python
Logs, error messages, and screenshots: backend:
frontend:
llm prompt_001:
llm response is empty
Additional Context
I also tried to use gpt-4 and got the same result.