Skip to content

feat(vscode): add OpenRouter embedding provider#381

Open
euyua9 wants to merge 1 commit into
zilliztech:masterfrom
euyua9:devc/vscode-openrouter-provider
Open

feat(vscode): add OpenRouter embedding provider#381
euyua9 wants to merge 1 commit into
zilliztech:masterfrom
euyua9:devc/vscode-openrouter-provider

Conversation

@euyua9

@euyua9 euyua9 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Add OpenRouter as a first-class embedding provider in the VSCode extension settings flow.

Changes

  • add OpenRouter to the VSCode extension configuration enum
  • register an OpenRouter provider option that reuses OpenAIEmbedding with https://openrouter.ai/api/v1
  • expose the OpenRouter fallback option in the webview provider dropdown
  • document OpenRouter in the VSCode extension README

Motivation

The MCP server already supports EMBEDDING_PROVIDER=OpenRouter, but the VSCode extension still only exposes OpenAI, VoyageAI, Ollama, and Gemini. This keeps the extension settings in sync with the existing OpenRouter support and gives users a direct OpenRouter option instead of requiring them to model it as generic OpenAI configuration.

Related: #81

Validation

  • ./node_modules/.bin/tsc -b packages/core/tsconfig.json
  • ./node_modules/.bin/tsc --noEmit -p packages/vscode-extension/tsconfig.json
  • git diff --check origin/master...HEAD
  • node -e "JSON.parse(require('fs').readFileSync('packages/vscode-extension/package.json','utf8')); console.log('package json ok')"

@euyua9 euyua9 force-pushed the devc/vscode-openrouter-provider branch from 2dbf211 to 28b5442 Compare May 20, 2026 16:47
@cvladan

cvladan commented May 24, 2026

Copy link
Copy Markdown

For God's sake, can you please merge this?

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.

2 participants