-
Notifications
You must be signed in to change notification settings - Fork 177
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
处理url带models的请求 #21
Comments
base url没有设置正确,请填写到/v1为止,后续的部分不要加。 |
不行的,这个软件它会自动加上models |
0|glm-free-api | [2024-05-01 17:46:38.859][warning][server.ts<79,20>] [请求有误]: 正确请求为 POST -> /v1/chat/completions,当前请求为 GET -> /v1//models 请纠正 |
程序加models没问题,目前最新版本都会返回模型列表,base url尾部不要加/,拼接后就变成// |
0|glm-free-api | [2024-05-01 18:17:58.562][info][server.ts<99,28>] -> POST /v1/chat/completions |
确认版本是否最新,我这边测试正常,models接口在0.0.23版本才加入支持 |
测试没问题了,我想问一下npm部署怎么进行更新 |
如果是clone的项目,直接拉最新代码,然后重启即可 |
0|glm-free-api | [2024-05-01 14:40:40.300][warning][server.ts<79,20>] [请求有误]: 正确请求为 POST -> /v1/chat/completions,当前请求为 GET -> /v1/chat/completions/models 请纠正
使用cursor 编辑器,它会在url后面加上models,这样就出现上面的问题
The text was updated successfully, but these errors were encountered: