Skip to content

fixing - #1

Merged
grvsnh merged 1 commit into
mainfrom
bharat
Jul 19, 2026
Merged

fixing#1
grvsnh merged 1 commit into
mainfrom
bharat

Conversation

@Strangemortal

Copy link
Copy Markdown
Collaborator

add the bharat to main branch

Copilot AI review requested due to automatic review settings July 19, 2026 08:26
@grvsnh
grvsnh merged commit ab8e2e0 into main Jul 19, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the app’s default LLM model selection behavior, primarily moving OpenRouter defaults to newer model IDs and adding support for selecting per-provider “fast vs smart” models when creating the LLM client.

Changes:

  • Updated OpenRouter default model IDs in stored defaults and in the LLM factory defaults.
  • Expanded settings sanitization to also normalize OpenRouter model values (in addition to Gemini).
  • Introduced per-provider model selection (getModelForProvider) in createLLM() and used it during provider failover.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/store.js Updates default OpenRouter model IDs and extends sanitize() to normalize Gemini/OpenRouter model settings.
src/llm.js Updates default OpenRouter model, adds per-provider model selection in createLLM(), and applies it during failover.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/llm.js

function createLLM(settings) {
const primaryProvider = settings.provider || 'gemini';
const primaryProvider = settings.provider || 'geminihow are you';
Comment thread src/llm.js
Comment on lines +118 to +122
const getModelForProvider = (p) => {
const isSmart = !!settings.smart;
if (settings.models && settings.models[p]) {
return isSmart ? settings.models[p].smart : settings.models[p].fast;
}
Comment thread src/store.js
Comment on lines +56 to 63
if (settings.models.openrouter) {
if (!settings.models.openrouter.fast || settings.models.openrouter.fast.includes('gemini-2.0') || settings.models.openrouter.fast.includes('lite-001')) {
settings.models.openrouter.fast = 'google/gemini-2.5-flash';
}
if (!settings.models.openrouter.smart || settings.models.openrouter.smart.includes('gemini-2.0') || settings.models.openrouter.smart.includes('lite-001')) {
settings.models.openrouter.smart = 'meta-llama/llama-3.3-70b-instruct:free';
}
}
@grvsnh
grvsnh deleted the bharat branch July 21, 2026 15:45
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.

3 participants