Skip to content

Conversation

@ojama
Copy link

@ojama ojama commented Dec 17, 2025

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
Copy link
Author

ojama commented Dec 17, 2025

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

@ojama
Copy link
Author

ojama commented Dec 17, 2025

@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.

1 participant