feat: support custom OpenAI-compatible API endpoints#18
Open
jelloeater-agent wants to merge 4 commits into
Open
feat: support custom OpenAI-compatible API endpoints#18jelloeater-agent wants to merge 4 commits into
jelloeater-agent wants to merge 4 commits into
Conversation
…m, etc.) - Add configurable apiBaseUrl setting (defaults to OpenRouter) - Build request URL from base URL instead of hardcoding - Make Authorization header conditional (skipped when API key is empty) - API key validation only enforced for OpenRouter - New 'Provider' group in settings UI with Base URL field - OpenRouter-specific links shown conditionally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a configurable Base URL setting so the plugin works with any OpenAI-compatible endpoint — not just OpenRouter.
Why
Users want to run against local models (Ollama, LM Studio, vLLM) or through a compression proxy (Headroom). The endpoint was hardcoded to .
Changes
apiBaseUrlsetting — persisted, defaults tohttps://openrouter.ai/api/v1(backward compatible){baseUrl}/chat/completionsreplaces the hardcoded URLopenrouterTesting
./gradlew buildPlugin # builds plugin zipbuild/distributions/http://localhost:11434/v1, add modelllama3, trigger with Shift+Ctrl+Sheadroom proxy --port 8787, set Base URL tohttp://localhost:8787/api/v1, trigger