[GH-ISSUE #57] 请教一下,Ollama配置不上,必须输入api key才能选择模型,但随便输入一个key的话提示获取模型列表失败 #31

Closed
opened 2026-03-02 03:37:17 +03:00 by kerem · 7 comments
Owner

Originally created by @q51374962 on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/57

Originally created by @q51374962 on GitHub (Jan 23, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/57
kerem 2026-03-02 03:37:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@codexu commented on GitHub (Jan 24, 2025):

确实发现了这个问题,dev 模式下确实没有问题,build 后就会出现,我尝试了很多方式都无法修复。
我在 tauri issues 中找到了同样问题 tauri-apps/plugins-workspace#1968,等待一下官方的回复吧。

<!-- gh-comment-id:2611440732 --> @codexu commented on GitHub (Jan 24, 2025): 确实发现了这个问题,dev 模式下确实没有问题,build 后就会出现,我尝试了很多方式都无法修复。 我在 tauri issues 中找到了同样问题 tauri-apps/plugins-workspace#1968,等待一下官方的回复吧。
Author
Owner

@NitronPlus commented on GitHub (Jan 24, 2025):

https://github.com/tauri-apps/plugins-workspace/issues/1968#issuecomment-2591907484

看起来似乎已经有解决了

<!-- gh-comment-id:2612337139 --> @NitronPlus commented on GitHub (Jan 24, 2025): https://github.com/tauri-apps/plugins-workspace/issues/1968#issuecomment-2591907484 看起来似乎已经有解决了
Author
Owner

@codexu commented on GitHub (Jan 25, 2025):

年后我试一下

<!-- gh-comment-id:2613864804 --> @codexu commented on GitHub (Jan 25, 2025): 年后我试一下
Author
Owner

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

测试了一下 Benglin 提供的方案,还是无法解决这个问题。

<!-- gh-comment-id:2638857335 --> @codexu commented on GitHub (Feb 6, 2025): 测试了一下 Benglin 提供的方案,还是无法解决这个问题。
Author
Owner

@q51374962 commented on GitHub (Feb 11, 2025):

加油!

<!-- gh-comment-id:2650809910 --> @q51374962 commented on GitHub (Feb 11, 2025): 加油!
Author
Owner

@scifx commented on GitHub (Feb 20, 2025):

设置环境变量:
OLLAMA_API_BASE http://127.0.0.1:11434
OLLAMA_HOST 0.0.0.0
OLLAMA_ORIGINS *
即可解决,(PS:tauri开发的chatgptnextweb也是同样的问题。

最新版本的chatgptnextweb解决了这个问题,可以参考下

<!-- gh-comment-id:2670121548 --> @scifx commented on GitHub (Feb 20, 2025): 设置环境变量: OLLAMA_API_BASE http://127.0.0.1:11434 OLLAMA_HOST 0.0.0.0 OLLAMA_ORIGINS * 即可解决,(PS:tauri开发的chatgptnextweb也是同样的问题。 -------------------------------- 最新版本的chatgptnextweb解决了这个问题,可以参考下
Author
Owner

@q51374962 commented on GitHub (Feb 26, 2025):

@scifx 成功解决,感谢

<!-- gh-comment-id:2684853708 --> @q51374962 commented on GitHub (Feb 26, 2025): @scifx 成功解决,感谢
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#31
No description provided.