runtime error
l last): File "/home/user/.local/lib/python3.8/site-packages/openai/api_requestor.py", line 520, in request_raw result = _thread_context.session.request( File "/home/user/.local/lib/python3.8/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/home/user/.local/lib/python3.8/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f829dd32940>: Failed to resolve 'api.openai.com' ([Errno -3] Temporary failure in name resolution)")) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "app.py", line 14, in <module> chat = openai.ChatCompletion.create( File "/home/user/.local/lib/python3.8/site-packages/openai/api_resources/chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "/home/user/.local/lib/python3.8/site-packages/openai/api_requestor.py", line 220, in request result = self.request_raw( File "/home/user/.local/lib/python3.8/site-packages/openai/api_requestor.py", line 533, in request_raw raise error.APIConnectionError( openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f829dd32940>: Failed to resolve 'api.openai.com' ([Errno -3] Temporary failure in name resolution)"))
Container logs:
Fetching error logs...