logancyang / obsidian-copilot

THE Copilot in Obsidian

Home Page:https://www.obsidiancopilot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ollama custom URL with basic auth

agung2001 opened this issue · comments

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