[GH-ISSUE #543] [bug]无法连接ollama本地部署的模型 #391

Closed
opened 2026-03-02 03:39:37 +03:00 by kerem · 5 comments
Owner

Originally created by @hxt99199 on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/543

详细描述这个 Bug

操作系统:Windows 11 家庭中文版
系统类型:64 位
note_gen版本:
ollama版本:0.11.4
LLM:本地部署
问题:在“模型配置”项里选择ollama并添加baseURL(http://localhost:11434/v1)始终无法识别、连接由本机ollama管理的大语言模型,但是使用其他软件调用LLM没问题。手动添加大模型后报连接错误

NoteGen 版本

v0.20.1

操作系统

Windows

报错日志

No response

Originally created by @hxt99199 on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/543 ### 详细描述这个 Bug 操作系统:Windows 11 家庭中文版 系统类型:64 位 note_gen版本: ollama版本:0.11.4 LLM:本地部署 问题:在“模型配置”项里选择ollama并添加baseURL(http://localhost:11434/v1)始终无法识别、连接由本机ollama管理的大语言模型,但是使用其他软件调用LLM没问题。手动添加大模型后报连接错误。 ### NoteGen 版本 v0.20.1 ### 操作系统 Windows ### 报错日志 _No response_
kerem closed this issue 2026-03-02 03:39:37 +03:00
Author
Owner

@hxt99199 commented on GitHub (Aug 12, 2025):

无法连接ollama本地部署的模型

<!-- gh-comment-id:3178322454 --> @hxt99199 commented on GitHub (Aug 12, 2025): 无法连接ollama本地部署的模型
Author
Owner

@scrtou commented on GitHub (Aug 14, 2025):

同遇到这个问题 看ollama日志是http请求方法不对,ollama收到的获取模型接口和chat接口都是options,而不是get和 post

<!-- gh-comment-id:3186451226 --> @scrtou commented on GitHub (Aug 14, 2025): 同遇到这个问题 看ollama日志是http请求方法不对,ollama收到的获取模型接口和chat接口都是options,而不是get和 post
Author
Owner

@codexu commented on GitHub (Aug 14, 2025):

#86

<!-- gh-comment-id:3186467496 --> @codexu commented on GitHub (Aug 14, 2025): #86
Author
Owner

@scrtou commented on GitHub (Aug 14, 2025):

配置OLLAMA_ORIGINS环境变量后正常

<!-- gh-comment-id:3186489630 --> @scrtou commented on GitHub (Aug 14, 2025): 配置OLLAMA_ORIGINS环境变量后正常
Author
Owner

@scrtou commented on GitHub (Aug 14, 2025):

#86

配置OLLAMA_ORIGINS环境变量后正常

<!-- gh-comment-id:3186491428 --> @scrtou commented on GitHub (Aug 14, 2025): > [#86](https://github.com/codexu/note-gen/discussions/86) 配置OLLAMA_ORIGINS环境变量后正常
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#391
No description provided.