Skip to content

Added OpenRouter support to the vscode-copilot-vision extension#107

Open
ojama wants to merge 5 commits into
microsoft:mainfrom
ojama:main
Open

Added OpenRouter support to the vscode-copilot-vision extension#107
ojama wants to merge 5 commits into
microsoft:mainfrom
ojama:main

Conversation

@ojama

@ojama ojama commented Dec 17, 2025

Copy link
Copy Markdown

Changes Made:
Extension Core (src/extension.ts):

Added OpenRouter to the ProviderType enum
Updated the provider selection command to include OpenRouter in the list
API Facade (src/apiFacade.ts):

Created a new OpenRouterApi class that implements the ApiFacade interface
Uses the OpenAI SDK with OpenRouter's base URL (https://openrouter.ai/api/v1)
Supports both URL-based images and base64-encoded images
Updated the getApi() function to return the new OpenRouterApi instance
Configuration (package.json):

Added "OpenRouter" to the provider enum in the configuration schema
Added "openrouter" to the keywords list
Documentation (README.md):

Updated the chat section to mention OpenRouter support
Fixed a typo ("limted" → "limited") and updated the provider list in settings
Added a new section "How do I use OpenRouter?" with step-by-step instructions
Included links to OpenRouter's website and model catalog

Copilot AI and others added 5 commits December 17, 2025 08:25
Co-authored-by: ojama <1772946+ojama@users.noreply.github.com>
Co-authored-by: ojama <1772946+ojama@users.noreply.github.com>
Co-authored-by: ojama <1772946+ojama@users.noreply.github.com>
@ojama

ojama commented Dec 17, 2025

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree [company="{ojama Personal}"]

@ojama

ojama commented Dec 17, 2025

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="ojama personal"

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