Skip to content

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

Description

@q51374962
No description provided.

Activity

  1. codexu commented on Jan 24, 2025

    @codexu
    Owner

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

  2. NitronPlus commented on Jan 24, 2025

    @NitronPlus
    Contributor

    tauri-apps/plugins-workspace#1968 (comment)

    看起来似乎已经有解决了

  3. codexu commented on Jan 25, 2025

    @codexu
    Owner

    年后我试一下

  4. codexu commented on Feb 6, 2025

    @codexu
    Owner

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

  5. q51374962 commented on Feb 11, 2025

    @q51374962
    Author

    加油!

  6. scifx commented on Feb 20, 2025

    @scifx

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

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

  7. q51374962 commented on Feb 26, 2025

    @q51374962
    Author

    @scifx 成功解决,感谢

  8. Repository owner locked and limited conversation to collaborators on Feb 27, 2025
  9. converted this issue into a discussion #86 on Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions