mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-25 12:55:57 +03:00
[GH-ISSUE #158] [bug] LM Studio 本地部署的大模型无法连上。 #119
Labels
No labels
bug
duplicate
feature
platform: Android
platform: Linux
platform: Windows
platform: iOS
platform: macOS
priority: high
priority: low
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/note-gen#119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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留空和随便填都试过、模型名称留空和填入都试过,均无法连上。
我用本地搭建知识库的软件测试连接,是可以正常连上LM Studio的。
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
@codexu commented on GitHub (May 6, 2025):
目前在 web 端使用 openai,所以需要开启跨域支持才可以,具体配置如下:

@lgsp-Leslie commented on GitHub (May 13, 2025):
成功解决,谢大佬~