[Artificial Intelligence (AI) general discussion] kmnnmk:
line 581, in create

return self._post(

^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1232, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 921, in request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 984, in _request

raise APIConnectionError(request=request) from err

openai.APIConnectionError: Connection error.

INFO: ('127.0.0.1', 44452) - "WebSocket /ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiIwMzI1ZjFhYi05M2ZjLTRmNjEtYmZhNi0zZDZiZGUwNjFkNGIifQ.4_W6SLHqkN91E348VIRJVxbE8Jh0pSKu81mz3e8V-_8" [accepted]

Starting loop_recv for sid: 0325f1ab-93fc-4f61-bfa6-3d6bde061d4b

INFO: connection open

INFO: 127.0.0.1:44460 - "GET /api/refresh-files HTTP/1.1" 200 OK

INFO: 127.0.0.1:44470 - "GET /api/litellm-models HTTP/1.1" 200 OK

16:53:56 - opendevin:INFO: agent.py:144 - Creating agent MonologueAgent using LLM gpt-3.5-turbo-1106

16:53:56 - opendevin:INFO: llm.py:51 - Initializing LLM with model: gpt-3.5-turbo-1106

16:53:59 - opendevin:INFO: ssh_box.py:353 - Container stopped

16:53:59 - opendevin:WARNING: ssh_box.py:365 - Using port forwarding for Mac OS. Server started by OpenDevin will not be accessible from the host machine at the moment. See https://github.com/OpenDevin/OpenDevin/issues/897 for more information.

16:53:59 - opendevin:INFO: ssh_box.py:373 - Mounting workspace directory: /home/m/OpenDevin/workspace

16:54:02 - opendevin:INFO: ssh_box.py:396 - Container started

16:54:03 - opendevin:INFO: ssh_box.py:413 - waiting for container to start: 1, container status: running

16:54:05 - opendevin:INFO: ssh_box.py:178 - Connecting to opendevin@localhost via ssh. If you encounter any issues, you can try `ssh -v -p 56731 opendevin@localhost` with the password '7a65f9fb-264a-4fcb-8437-8dc4adb315fe' and report the issue on GitHub.

huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...

To disable this warning, you can either:

- Avoid using `tokenizers` before the fork if possible

- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)

INFO: 127.0.0.1:44480 - "GET /api/messages/total HTTP/1.1" 200 OK

INFO: 127.0.0.1:44512 - "GET /api/litellm-models HTTP/1.1" 200 OK

INFO: 127.0.0.1:44526 - "GET /api/agents HTTP/1.1" 200 OK

INFO: 127.0.0.1:44496 - "GET /api/refresh-files HTTP/1.1" 200 OK

INFO: 127.0.0.1:53562 - "GET /api/agents HTTP/1.1" 200 OK

INFO: 127.0.0.1:53574 - "GET /api/messages HTTP/1.1" 200 OK

==============

STEP 0

16:54:14 - PLAN

efefefefe

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'.

16:54:17 - opendevin:ERROR: agent_controller.py:102 - Error in loop

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions

yield

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request

resp = self._pool.handle_request(req)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request

raise exc from None

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request

response = connection.handle_request(

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request

raise exc

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request

stream = self._connect(request)

^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect

stream = self._network_backend.connect_tcp(**kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp

with map_exceptions(exc_map):

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions

raise to_exc(exc) from exc

httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request

response = self._client.send(

^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request

response = transport.handle_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request

with map_httpcore_exceptions():

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 277, in wrapper

return func(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 581, in create

return self._post(

^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1232, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 921, in request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 984, 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/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/main.py", line 1010, in completion

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/main.py", line 983, in completion

response = openai_chat_completions.completion(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions

yield

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request

resp = self._pool.handle_request(req)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request

raise exc from None

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request

response = connection.handle_request(

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request

raise exc

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request

stream = self._connect(request)

^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect

stream = self._network_backend.connect_tcp(**kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp

with map_exceptions(exc_map):

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions

raise to_exc(exc) from exc

httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request

response = self._client.send(

^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request

response = transport.handle_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request

with map_httpcore_exceptions():

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 277, in wrapper

return func(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 581, in create

return self._post(

^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1232, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 921, in request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 984, 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/m/OpenDevin/opendevin/controller/agent_controller.py", line 98, in _run

finished = await self.step(i)

^^^^^^^^^^^^^^^^^^

File "/home/m/OpenDevin/opendevin/controller/agent_controller.py", line 211, in step

action = self.agent.step(self.state)

^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/OpenDevin/agenthub/monologue_agent/agent.py", line 218, in step

resp = self.llm.completion(messages=messages)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 289, in wrapped_f

return self(f, *args, **kw)

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 379, in __call__

do = self.iter(retry_state=retry_state)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 314, in iter

return fut.result()

^^^^^^^^^^^^

File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result

return self.__get_result()

^^^^^^^^^^^^^^^^^^^

File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result

raise self._exception

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 382, in __call__

result = fn(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^

File "/home/m/OpenDevin/opendevin/llm/llm.py", line 78, in wrapper

resp = completion_unwrapped(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2977, in wrapper

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 2875, in wrapper

result = original_function(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/main.py", line 2137, in completion

raise exception_type(

^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 8665, in exception_type

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/utils.py", line 7507, in exception_type

raise APIError(

litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions

yield

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request

resp = self._pool.handle_request(req)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request

raise exc from None

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request

response = connection.handle_request(

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request

raise exc

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request

stream = self._connect(request)

^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 122, in _connect

stream = self._network_backend.connect_tcp(**kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 205, in connect_tcp

with map_exceptions(exc_map):

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions

raise to_exc(exc) from exc

httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request

response = self._client.send(

^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request

response = transport.handle_request(request)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request

with map_httpcore_exceptions():

File "/usr/lib/python3.11/contextlib.py", line 155, in __exit__

self.gen.throw(typ, value, traceback)

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/litellm/llms/openai.py", line 414, in completion

raise e

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-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/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_utils/_utils.py", line 277, in wrapper

return func(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 581, in create

return self._post(

^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1232, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 921, in request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 974, in _request

return self._retry_request(

^^^^^^^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1045, in _retry_request

return self._request(

^^^^^^^^^^^^^^

File "/home/m/.cache/pypoetry/virtualenvs/opendevin-ko9ZQbX7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 984, in _request

raise APIConnectionError(request=request) from err

openai.APIConnectionError: Connection error.