Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APITimeoutError: Request timed out. #157

Open
dxw2544523082 opened this issue Dec 18, 2024 · 1 comment
Open

APITimeoutError: Request timed out. #157

dxw2544523082 opened this issue Dec 18, 2024 · 1 comment

Comments

@dxw2544523082
Copy link

Traceback (most recent call last):
File "/home/dxw123/MyPytorchProject/client.py", line 12, in
response = client.chat.completions.create(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/aisuite/client.py", line 117, in create
return provider.chat_completions_create(model_name, messages, **kwargs)
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/aisuite/providers/openai_provider.py", line 29, in chat_completions_create
return self.client.chat.completions.create(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 859, in create
return self._post(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1280, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 957, in request
return self._request(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1002, in _request
return self._retry_request(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1095, in _retry_request
return self._request(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1002, in _request
return self._retry_request(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1095, in _retry_request
return self._request(
File "/home/dxw123/anaconda3/envs/LLM/lib/python3.10/site-packages/openai/_base_client.py", line 1012, in _request
raise APITimeoutError(request=request) from err
why? 怎么解答

@ksolo
Copy link
Collaborator

ksolo commented Dec 29, 2024

@dxw2544523082 Can you provide more context such as a code sample that reproduces the error, the environment (Linux, MacOS?), versions of the libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants