Skip to content

Embabel Ollama: Support OAuth2 Bearer + custom TLS #1480

@biiyamn

Description

@biiyamn

Hi, We’re using Embabel 0.3.4 with an Ollama endpoint that requires an OAuth2 Bearer token and a custom TLS certificate. At startup, Embabel can’t discover models because the /api/tags request is unauthenticated, so it returns 401 and zero models are registered.

What is the supported way to add Bearer/OAuth2 auth and apply custom trust/SSL to all Ollama requests (both /api/tags discovery and the OllamaApi chat/embedding endpoints)?

11:13:09.911 [main] INFO OllamaModelsConfig - Using default Ollama instance at [url]
11:16:03.987 [main] WARN OllamaModelsConfig - Failed to load models from [url] : 401 Unauthorized:...
11:16:03.987 [main] WARN OllamaModelsConfig - No Ollama models discovered from default instance at [url]. Check server configuration.
11:16:03.998 [main] INFO OllamaModelsConfig - Ollama: Initialized 0 LLM(s) and 0 embedding(s)

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions