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

请问,http://localhost:8090/可以打开,遇到这个问题如何解决, openai.error.APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) #9

Open
zxjhellow2 opened this issue Mar 3, 2024 · 1 comment

Comments

@zxjhellow2
Copy link

zxjhellow2 commented Mar 3, 2024

import openai

openai.api_key = "7c7aa4a3549f5"
openai.api_base = "http://localhost:8090/v1"

completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
print(completion.choices[0].message.content)

@zxjhellow2 zxjhellow2 changed the title 请问遇到这个问题如何解决http://localhost:8090/可以打开,但是遇到 openai.error.APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) 请问,http://localhost:8090/可以打开,,遇到这个问题如何解决, openai.error.APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) Mar 3, 2024
@zxjhellow2 zxjhellow2 changed the title 请问,http://localhost:8090/可以打开,,遇到这个问题如何解决, openai.error.APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) 请问,http://localhost:8090/可以打开,遇到这个问题如何解决, openai.error.APIError: Invalid response object from API: 'Internal Server Error' (HTTP response code was 500) Mar 3, 2024
@tian-minghui
Copy link
Owner

给下 server端的日志

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