ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] 本地API无法正常调用,request body:{} 为空

Open
#4,744 6 comments 0 reactions 0 assignees View on GitHub
bug
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:{} 为空
![微信图片_20240521021552](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/50100303/a7303ead-60c9-4c6a-8512-a8fe8311e983)

我看调用了openai的计费接口,但是LM Studio 没有此接口,不知道是不是因为这个,request body:{} 里都为空,

目前本地接口完全无法使用

![微信截图_20240521235921](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/50100303/dfdb347d-0d8e-4a81-83b0-b8db8f63e4eb)
关闭计费功能后,问题依旧

### 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.