[GH-ISSUE #158] [bug] LM Studio 本地部署的大模型无法连上。 #119

Closed
opened 2026-03-02 03:37:53 +03:00 by kerem · 2 comments
Owner

Originally created by @lgsp-Leslie on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/158

详细描述这个 Bug

LM Studio 本地部署的大模型无法连上。

尝试过一下IP带版本号v1和不带版本号,均无法连上。
http://172.26.112.1:3690
http://localhost:3690
http://192.168.31.149:3690

API留空和随便填都试过、模型名称留空和填入都试过,均无法连上。

Image

我用本地搭建知识库的软件测试连接,是可以正常连上LM Studio的。

Image

NoteGen 版本

0.13.5

操作系统

Windows

报错日志

LM Studio日志

2025-04-29 14:14:55 [DEBUG]
Received request: OPTIONS to /v1/chat/completions
2025-04-29 14:14:55 [ERROR]
'messages' field is required
2025-04-29 14:14:56 [DEBUG]
Received request: OPTIONS to /v1/models
2025-04-29 14:14:56 [ERROR]
Unexpected endpoint or method. (OPTIONS /v1/models). Returning 200 anyway
2025-04-29 14:14:56 [DEBUG]
Received request: OPTIONS to /v1/chat/completions
2025-04-29 14:14:56 [ERROR]
'messages' field is required
2025-04-29 14:14:57 [DEBUG]
Received request: OPTIONS to /v1/chat/completions
2025-04-29 14:14:57 [ERROR]
'messages' field is required

Originally created by @lgsp-Leslie on GitHub (Apr 29, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/158 ### 详细描述这个 Bug LM Studio 本地部署的大模型无法连上。 尝试过一下IP带版本号v1和不带版本号,均无法连上。 http://172.26.112.1:3690 http://localhost:3690 http://192.168.31.149:3690 API留空和随便填都试过、模型名称留空和填入都试过,均无法连上。 ![Image](https://github.com/user-attachments/assets/e53bd549-1f57-4fd7-84c4-2b556a60e426) 我用本地搭建知识库的软件测试连接,是可以正常连上LM Studio的。 ![Image](https://github.com/user-attachments/assets/6205ddb9-a5cd-4701-bf6e-fea03106b687) ### NoteGen 版本 0.13.5 ### 操作系统 Windows ### 报错日志 **LM Studio日志** 2025-04-29 14:14:55 [DEBUG] Received request: OPTIONS to /v1/chat/completions 2025-04-29 14:14:55 [ERROR] 'messages' field is required 2025-04-29 14:14:56 [DEBUG] Received request: OPTIONS to /v1/models 2025-04-29 14:14:56 [ERROR] Unexpected endpoint or method. (OPTIONS /v1/models). Returning 200 anyway 2025-04-29 14:14:56 [DEBUG] Received request: OPTIONS to /v1/chat/completions 2025-04-29 14:14:56 [ERROR] 'messages' field is required 2025-04-29 14:14:57 [DEBUG] Received request: OPTIONS to /v1/chat/completions 2025-04-29 14:14:57 [ERROR] 'messages' field is required
kerem 2026-03-02 03:37:53 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@codexu commented on GitHub (May 6, 2025):

目前在 web 端使用 openai,所以需要开启跨域支持才可以,具体配置如下:
Image

<!-- gh-comment-id:2854048234 --> @codexu commented on GitHub (May 6, 2025): 目前在 web 端使用 openai,所以需要开启跨域支持才可以,具体配置如下: <img width="472" alt="Image" src="https://github.com/user-attachments/assets/e5852b26-f8b3-4063-a586-d79107918828" />
Author
Owner

@lgsp-Leslie commented on GitHub (May 13, 2025):

成功解决,谢大佬~

<!-- gh-comment-id:2875138884 --> @lgsp-Leslie commented on GitHub (May 13, 2025): 成功解决,谢大佬~
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#119
No description provided.