Giter VIP home page Giter VIP logo

Comments (4)

alex-dna-tech avatar alex-dna-tech commented on July 1, 2024

The same problem on MacOS Desktop version v1.5.7
Screenshot 2024-06-23 at 19 14 38

Screenshot 2024-06-23 at 19 17 20

from anything-llm.

timothycarambat avatar timothycarambat commented on July 1, 2024

The connector does work, you just are using the wrong URL or Ollama is actually not running on the host.
assuming both are on the same machine and you _confirmed that ollama serve is running.

If on Docker:

  • you need to specific the host machine IP or you can use HTTP://host.docker.internal to access the host machine
    However, on Ubuntu/Linux docker the above URL does not work and you need to use 172.17.0.1:11434. If this is not your situation you dont need to use this URL. This also presumes you have not already tried to boot Ollama with the proper ENVs for ollama to be able to listen on the correct loopback. 172.17.0.1 = 0.0.0.0

On desktop:
HTTP://127.0.01:11434

Things to read about this:
https://docs.useanything.com/ollama-models-not-loading
https://github.com/Mintplex-Labs/anything-llm/blob/master/server/utils/AiProviders/ollama/README.md

from anything-llm.

Mattias-Code avatar Mattias-Code commented on July 1, 2024

After following the documentation at https://github.com/Mintplex-Labs/anything-llm/blob/master/server/utils/AiProviders/ollama/README.md I managed to resolve the issue by binding Ollama to 0.0.0.0 and using 172.17.0.1:11434 as base URL.

Thank you. For future problems I'll take a closer look at the github before creating a new issue!

from anything-llm.

timothycarambat avatar timothycarambat commented on July 1, 2024

@Mattias-Code Thanks for the reply + resolution. Also no big deal, we get Ollama connection issues about 5-10 times a week because of that caveat on address binding Ollama has - you are not alone!

from anything-llm.

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.