Skip to content
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

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

Open
3 tasks
yangbin8 opened this issue May 20, 2024 · 6 comments
Open
3 tasks

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

yangbin8 opened this issue May 20, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@yangbin8
Copy link

yangbin8 commented May 20, 2024

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

@yangbin8 yangbin8 added the bug Something isn't working label May 20, 2024
@Issues-translate-bot
Copy link

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
Copy link

计费查询可以关掉的
image

@Issues-translate-bot
Copy link

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


Billing inquiry can be turned off
image

@yangbin8
Copy link
Author

计费查询可以关掉的 image

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

@Issues-translate-bot
Copy link

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants