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

Langchain接口报错500 #35

Closed
StuartXuJian opened this issue Jun 11, 2023 · 2 comments
Closed

Langchain接口报错500 #35

StuartXuJian opened this issue Jun 11, 2023 · 2 comments

Comments

@StuartXuJian
Copy link

apibase也改了,key也放了。测试直接用POST是可以通的。
chat = ChatOpenAI(streaming=True, callbacks=[StreamingStdOutCallbackHandler()], temperature=1, openai_api_base=openai_endpoint, openai_api_key=”sk-xxxxxx“)

调用结果失败,貌似是被转发服务器拒绝了
[chain/error] [1:llm:ChatOpenAI] [32.17s] Chain run errored with error:
"APIError(message="HTTP code 500 from API (Request method 'POST' not supported)", http_status=500, request_id=None)"

@chatanywhere
Copy link
Owner

是不是api_base改的不对把

@StuartXuJian
Copy link
Author

是的,你说对了。。我用了学院版的base放到了langchain里,它用的是openai的接口。

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