ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
75.43k stars 58.87k forks source link

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

Open yangbin8 opened 4 months ago

yangbin8 commented 4 months ago

Bug Description

使用LM Studio 提供的 openAI接口,request body:{} 为空 微信图片_20240521021552

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

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

微信截图_20240521235921 关闭计费功能后,问题依旧

Steps to Reproduce

无法正常请求数据 软件版本号:v2.12.3

Expected Behavior

期望可以使用本地API正常工作

Screenshots

Deployment Method

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

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] The local API cannot be called normally, request body:{} is empty

QAbot-zh commented 4 months ago

计费查询可以关掉的 image

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.


Billing inquiry can be turned off image

yangbin8 commented 4 months ago

计费查询可以关掉的 image

我尝试部署docker,关闭了计费查询,body: {} 发的请求依然为空,看来不是因为计费查询,问题依旧,仍未解决

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.


Billing query can be turned off![image](https://private-user-images.githubusercontent.com/40236765/332302690-0688cf8a-e77d-4ebd-b3b3-75ce5edda9f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..K DaBr1F- r_cRKqjq6qNwseTBan3blxzGnu13t-EI_dQ)

I tried to deploy docker and turned off the billing query. The request sent by body: {} is still empty. It seems that it is not because of the billing query. The problem remains and has not been solved.

Dean-YZG commented 4 months ago

what are values of configs of settings in client? what are values of the environment variables in the proxy server. Can you give me a few screenshot?