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

Error when running frontend.py in demo2-multi-node-sharing: APIConnectionError #5

Open
Maxppddcsz opened this issue Dec 16, 2024 · 0 comments

Comments

@Maxppddcsz
Copy link

Hello,

I encountered an error when running the second demo in the repository. Following the README, I downloaded the image.
image
And I tried running frontend.py. However, I received the following error during execution:

File "/mnt/data1/user1/demo/demo2-multi-node-sharing/frontend.py", line 59, in <module>
    session = chat_session.ChatSession(PORT1)
File "/mnt/data1/user1/demo/demo2-multi-node-sharing/chat_session.py", line 21, in __init__
    models = client.models.list()
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/resources/models.py", line 91, in list
    return self._get_api_list(
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 1326, in get_api_list
    return self._request_api_list(model, page, opts)
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 1177, in _request_api_list
    return self.request(page, options, stream=False)
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 954, in request
    return self._request(
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 1014, in _request
    return self._retry_request(
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 1092, in _retry_request
    return self._request(
File "/mnt/data1/user1/anaconda3/envs/sglang/lib/python3.10/site-packages/openai/_base_client.py", line 1024, in _request
    raise APIConnectionError(request=request) from err

However, based on the code, the wrapped OpenAI client is pointing to a local port service.
image
If you have any insights or suggestions on resolving this issue, I would appreciate it!

Thank you!

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

1 participant