ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Bug] 本地API无法正常调用,request body:{} 为空
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Bug Description
使用LM Studio 提供的 openAI接口,request body:{} 为空

我看调用了openai的计费接口,但是LM Studio 没有此接口,不知道是不是因为这个,request body:{} 里都为空,
目前本地接口完全无法使用

关闭计费功能后,问题依旧
### Steps to Reproduce
无法正常请求数据
软件版本号:v2.12.3
### Expected Behavior
期望可以使用本地API正常工作
### Screenshots
### Deployment Method
- [ ] Docker
- [ ] Vercel
- [ ] Server
### Desktop OS
win10
### Desktop Browser
_No response_
### Desktop Browser Version
_No response_
### Smartphone Device
_No response_
### Smartphone OS
_No response_
### Smartphone Browser
_No response_
### Smartphone Browser Version
_No response_
### Additional Logs
[2024-05-21 23:51:26.992] [INFO] Received OPTIONS request to /v1/chat/completions with body: {}
[2024-05-21 23:51:26.992] [ERROR] 'messages' field is required
[2024-05-21 23:52:07.450] [INFO] [LM STUDIO SERVER] Processing queued request...
[2024-05-21 23:52:07.451] [INFO] Received OPTIONS request to /v1/chat/completions with body: {}
[2024-05-21 23:52:07.451] [ERROR] 'messages' field is required
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.