Skip to content

[Feature] Add OpenRouter compatibility#1

Open
PrinceGallywix wants to merge 2 commits into
mrbuslov:mainfrom
PrinceGallywix:main
Open

[Feature] Add OpenRouter compatibility#1
PrinceGallywix wants to merge 2 commits into
mrbuslov:mainfrom
PrinceGallywix:main

Conversation

@PrinceGallywix

Copy link
Copy Markdown

Hey! Thank you for this VS Code extension! I'd like to add a possibility to use OpenRouter API.

P.S.: To be clear, I did not test if this feature break the original OpenAI functionality since I don't use their API. Hope that it won't be a big deal to test this branch from your side, but will completely understand if you don't want to waste time on this :)

Dmitry Borisov added 2 commits February 25, 2026 11:12
…odels

OpenRouter does not support the standard `/v1/audio/transcriptions` Whisper endpoint. However, it does support audio via multimodal Chat Completions with models like Gemini 2.5 Flash and GPT-4o-Audio.

This update refactors the `WhisperService` to seamlessly route transcription requests through OpenRouter's `/chat/completions` endpoint using `google/gemini-2.5-flash` when OpenRouter is selected. This allows users to correctly transcribe audio directly in OpenRouter without needing a fallback URL, completely fixing the 405 error issue.
@mrbuslov

mrbuslov commented May 7, 2026

Copy link
Copy Markdown
Owner

Hello @PrinceGallywix !
Wow, this is perfect! Sorry for long response, I didn't notice the PR opened - probably, because you didn't request the review from me

OFC - resolve the conflicts, and I'll test this out

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