Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request | Make it possible to configure a remote Ollama host/baseURL #990

Open
aweijnitz opened this issue Jun 28, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@aweijnitz
Copy link

Currently the Ollama class assumes Ollama is running on localhost. This is an unnecessary limitation.
The config object is not passed down to the "native wrapper" although it looks like it in the code and thus, it defaults to localhost and port.

As a developer, I would like to supply a host and port to be used when creating my Ollama instance.

Example of intended use (see config object)

Settings.llm = new Ollama({ 
    model: models[modelIndex],
    temperature: 0.75,
    config: {
      host: 'http://my.own.internal.hostname.de:${CUSTOM_PORT}/'
    }
  })

The "native wrapper" class where the config object never arrives:

@himself65 himself65 added the bug Something isn't working label Jun 28, 2024
@gcapozzo
Copy link

Set this in the .env file:
OLLAMA_BASE_URL=http://IP:PORT

@himself65
Copy link
Member

I'm about to remove the wrapper class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants