Skip to content

Support authentication for ollama used as embeddingsProvider #1170

@niosHD

Description

@niosHD

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

According to the config documentation, unlike when defining models or a tabAutocompleteModel, there is no support for requestOptions.headers on the embeddingsProvider.

For most providers that is not a big issue as they do their authentication via the apiKey. However, when authentication is used with ollama then that has to be done via a custom header in the request options as documented for models. As the result, it seems impossible to use ollama with authentication as embeddings provider at the moment.

Solution

The most consistent solution with the remaining config would probably be to add support for requestOptions.headers also to the embeddingsProvider.

Metadata

Metadata

Assignees

Labels

area:configurationRelates to configuration optionskind:enhancementIndicates a new feature request, imrovement, or extension

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions