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

Ollama custom URL with basic auth #467

Open
agung2001 opened this issue Jun 9, 2024 · 1 comment
Open

Ollama custom URL with basic auth #467

agung2001 opened this issue Jun 9, 2024 · 1 comment

Comments

@agung2001
Copy link

agung2001 commented Jun 9, 2024

Is your feature request related to a problem? Please describe.
I would like to use a custom URL for my ollama instance from my server : https://ollama.example.com
but it uses a basic auth token for the authentication process

VSCode extension such as continue.dev uses the same configuration : continuedev/continue#834 (comment)

"models": [ {
      "title": "TinyLLAMA",
      "provider": "ollama",
      "model": "tinyllama",
      "apiBase": "https://ollama.example.com",
      "requestOptions": {
        "headers": {"Authorization": "Basic bXl1c2VybmFtZTpteXBhc3N3b3Jk"}
      }
    }]

Describe the solution you'd like
I think adding an additional option to configure the fetch function will be very helpful

Describe alternatives you've considered
none

Additional context
none

@logancyang
Copy link
Owner

logancyang commented Sep 10, 2024

This one seems related and a prereq langchain-ai/langchainjs#6631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants