Skip to content

Supporting OpenRouter Embedding Models#52

Open
oliverkiranbrown wants to merge 6 commits into
mainfrom
49-openrouter-embeddings-not-yet-supported
Open

Supporting OpenRouter Embedding Models#52
oliverkiranbrown wants to merge 6 commits into
mainfrom
49-openrouter-embeddings-not-yet-supported

Conversation

@oliverkiranbrown

Copy link
Copy Markdown
Collaborator

Closes #49

Changes

  • LLM_Client.get_embeddings_model() now branches based on provider["type"]. Ollama providers keep using OllamaEmbeddings, but openai-type providers (including OpenRouter) use OpenAIEmbeddings with the required base URL / API key.
  • Providers in config.py have their own embeddings_model, as the avalible models vary by provider.
  • Put OpenRouter as the as the fallback option in embeddings_provider_priority. Can change this around as desired.
  • vector_database_manager.py had a hardcoded OllamaEmbeddings. Now removed. The embedding model is taken directly from LLM_Client
  • Test coverage

I haven't had time to test this myself. Can take a look later this week when I get a chance.

@oliverkiranbrown oliverkiranbrown linked an issue Jun 6, 2026 that may be closed by this pull request
@oliverkiranbrown oliverkiranbrown requested a review from Adavideo June 6, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenRouter embeddings not yet supported

2 participants