-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: add OpenRouter model selector and configurable fallback provider #2014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
luiggibcn
wants to merge
34
commits into
AndyMik90:develop
from
luiggibcn:feat/openrouter-model-selector
Closed
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
396f0c7
feat: add OpenRouter model selector and configurable fallback provider
luiggibcn c960f2a
fix: address PR review issues
luiggibcn 5444660
test: add coverage for fallback provider and Ollama model loading
luiggibcn 6e07556
feat: add OPENROUTER_LIST_MODELS IPC handler
luiggibcn 9f2e3e0
docs: add before/after screenshots for PR #2014
luiggibcn 043882f
fix: address pre-merge check warnings
luiggibcn cbd331a
test: add coverage for sanitizeReasoningFromMessages (#1988)
luiggibcn 4340676
fix: use [redacted] placeholder for fully-stripped reasoning messages
luiggibcn 2ec4f4f
docs: fix JSDoc placement in factory.ts provider detection
luiggibcn 285313a
i18n: add modelCombobox keys and use them in ProviderModelCombobox
luiggibcn a70d784
fix: type fallbackProviderId as BuiltinProvider and handle save errors
luiggibcn d46a3d8
test: use SupportedProvider enum and isolate cache in detectProviderF…
luiggibcn 6b637fa
refactor: move OpenRouter IPC handler to openrouter-handlers.ts
luiggibcn ab61637
feat: add refresh() to useOpenRouterModels hook
luiggibcn aad83d5
refactor: use cn() helper for class composition in ProviderModelCombobox
luiggibcn 07e98e5
test: assert prefix is defined before checking MODEL_PROVIDER_MAP value
luiggibcn dba035e
fix: validate OpenRouter API response shape before mapping
luiggibcn e212026
fix: log fetch errors and guard empty providerSlug in useOpenRouterMo…
luiggibcn feea7c8
fix: warn on invalid or unreadable fallbackProviderId in factory
luiggibcn ecb8963
fix(a11y): associate fallback provider Select with its visible label
luiggibcn c22ba67
test: fix test description and remove redundant vi.stubGlobal
luiggibcn 0f5f311
fix: add 10s AbortController timeout to OpenRouter model list fetch
luiggibcn 33fc2cb
fix: Import hooks via the tsconfig path alias
luiggibcn 870de13
refactor: gate useOpenRouterModels subscriber behind OpenRouterCombob…
luiggibcn ebcde13
refactor: extract OpenRouterModel type in useOpenRouterModels
luiggibcn 44541ab
fix(i18n): replace hardcoded Loading… string in Combobox with transla…
luiggibcn 978a8fb
Revert "fix(i18n): replace hardcoded Loading… string in Combobox with…
luiggibcn 465c64e
fix(i18n): add loadingMessage prop to Combobox instead of using useTr…
luiggibcn a808ddd
fix(vitest): align @/ alias with tsconfig (src/renderer) to fix CI te…
luiggibcn 9dc59ce
chore: remove redundant @renderer alias from vitest config
luiggibcn 96da49b
fix(worker): prevent electron.app import crash in worker threads
luiggibcn 2d73d3b
fix(settings): invalidate fallback provider cache when settings saved
luiggibcn d34b69b
fix: remove unused import
luiggibcn 4e9708c
fix(i18n): make combobox custom value label translatable
luiggibcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.