NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

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

Open bigybin opened this issue 1 year ago • 5 comments

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

  • [ ] 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

bigybin avatar May 20 '24 18:05 bigybin

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

Issues-translate-bot avatar May 20 '24 18:05 Issues-translate-bot

计费查询可以关掉的 image

QAbot-zh avatar May 21 '24 06:05 QAbot-zh

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


Billing inquiry can be turned off image

Issues-translate-bot avatar May 21 '24 06:05 Issues-translate-bot

计费查询可以关掉的 image

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

bigybin avatar May 21 '24 15:05 bigybin

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.

Issues-translate-bot avatar May 21 '24 15:05 Issues-translate-bot

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?

Dean-YZG avatar May 27 '24 08:05 Dean-YZG