Skip to content

No header support for Ollama? (401 - Unauthorized) #297

@solidprinciples

Description

@solidprinciples

I use an external ollama API (ollama cloud), which requires an authorization bearer token to be sent. I've seen examples for custom endpoints using headers (and have tried to get it working via their OpenAI compatible endpoint - no dice).

I am looking for a way to add in headers for the Ollama models, such that I can send the authorization header correctly.

Current my-models.yml

version: v0.1
providers:
  - name: Ollama
    models:
      - name: deepseek-v3.1:671b
        ollama_host: https://ollama.com/
      - name: glm-4.6
        ollama_host: https://ollama.com/
      - name: gpt-oss:120b
        ollama_host: https://ollama.com/
      - name: gpt-oss:20b
        ollama_host: https://ollama.com/
      - name: kimi-k2:1t
        ollama_host: https://ollama.com/
      - name: qwen3-coder:480b
        ollama_host: https://ollama.com/
      - name: qwen3-vl:235b
        ollama_host: https://ollama.com/

Metadata

Metadata

Assignees

Labels

needs more infoNeed user to provide more info

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions