Git Product home page Git Product logo

Comments (10)

sugarforever avatar sugarforever commented on June 7, 2024 1

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

我的win电脑也是通过把localhost域名修改为127.0.0.1后,就解决了报错的问题。回到家里的mac上,使用localhost是完全没有问题的.

那就是在Ollama Server设置中指向 http://127.0.0.1:11434 就可以在不同平台上正常工作了吧?
代码里已经将默认host指向 http://127.0.0.1:11434 - https://github.com/sugarforever/chat-ollama/blob/main/server/middleware/ollama.ts#L3

这个issue还有什么需要解决的吗?没有的话,我想就可以关闭了 😁

from chat-ollama.

satrong avatar satrong commented on June 7, 2024

感觉跟 ollama 有关

from chat-ollama.

sugarforever avatar sugarforever commented on June 7, 2024

最近有不少用户报了这个问题,还没有深入研究。不过升级node到 v20.5.1 应该能解决这个问题。

from chat-ollama.

yinzhidong avatar yinzhidong commented on June 7, 2024

最近有不少用户报了这个问题,还没有深入研究。不过升级node到 v20.5.1 应该能解决这个问题。

好的,我明天再试试。

from chat-ollama.

sylaryip avatar sylaryip commented on June 7, 2024

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

from chat-ollama.

sugarforever avatar sugarforever commented on June 7, 2024

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

你的本地localhost的设置有什么特别吗?

from chat-ollama.

sylaryip avatar sylaryip commented on June 7, 2024

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

你的本地localhost的设置有什么特别吗?

应该没有,我用别外一台 mbp 使用 localhost 作为 Host 又可以使用。具体情况还要继续排查才知道

from chat-ollama.

sugarforever avatar sugarforever commented on June 7, 2024

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

你的本地localhost的设置有什么特别吗?

应该没有,我用别外一台 mbp 使用 localhost 作为 Host 又可以使用。具体情况还要继续排查才知道

等你的好消息。

from chat-ollama.

yinzhidong avatar yinzhidong commented on June 7, 2024

使用本地的 ollama 时,Host 设置为 http://localhost:11434 会报这个错,改为 http://127.0.01:11434 就没有问题

我的win电脑也是通过把localhost域名修改为127.0.0.1后,就解决了报错的问题。回到家里的mac上,使用localhost是完全没有问题的.

from chat-ollama.

yinzhidong avatar yinzhidong commented on June 7, 2024

嗯嗯,确实可以关闭了

from chat-ollama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.