From 4cdbc4f3dd0280bb4e401ae5ffe9a04d25f22a59 Mon Sep 17 00:00:00 2001 From: nang-dev Date: Mon, 3 Feb 2025 20:22:29 -0500 Subject: [PATCH] Added recommended --- core/config/load.ts | 2 +- extensions/vscode/src/commands.ts | 2 +- extensions/vscode/src/quickEdit/QuickEditQuickPick.ts | 2 +- gui/src/components/modelSelection/ModelSelect.tsx | 6 +++--- gui/src/pages/AddNewModel/configs/models.ts | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 0dd879c26e..40cf72f2a4 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -627,7 +627,7 @@ const STATIC_MODELS: ModelDescription[] = [ { model: "pearai_model", contextLength: 300000, - title: "PearAI Model", + title: "PearAI Model (Recommended)", systemMessage: "You are an expert software developer. You give helpful and concise responses.", provider: "pearai_server", isDefault: true, diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 2ac52a004c..e6c0019283 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -924,7 +924,7 @@ const commandsMap: ( // limit reached, switching to free model vscode.window.showInformationMessage(msg.warningMsg); extensionContext.globalState.update("freeModelSwitched", true); - sidebar.webviewProtocol?.request("switchModel", "PearAI Model", ["pearai.pearAIChatView"]); + sidebar.webviewProtocol?.request("switchModel", "PearAI Model (Recommended)", ["pearai.pearAIChatView"]); } }, "pearai.patchWSL": async () => { diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index ebff5d653b..d9b9f32d2f 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -89,7 +89,7 @@ export class QuickEdit { 'perplexity', ]; - private DEFAULT_MODEL = 'PearAI Model'; + private DEFAULT_MODEL = 'PearAI Model (Recommended)'; constructor( diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 75c96fdbbe..f7f54054b3 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -155,11 +155,11 @@ function ModelOption({ src={`${window.vscMediaUrl}/logos/pearai-color.png`} className="w-4 h-4 object-contain" /> - {option.title !== 'PearAI Model' && { const modelTitle = option.title.toLowerCase(); switch (true) { - case modelTitle === 'pearai model': + case modelTitle === 'PearAI Model (Recommended)': return 'pearai-color.png'; case modelTitle.includes('claude'): return 'anthropic.png'; @@ -323,7 +323,7 @@ function ModelSelect() { src={`${window.vscMediaUrl}/logos/pearai-color.png`} className="w-[15px] h-[15px] object-contain" /> - {defaultModel.title !== 'PearAI Model' && { const modelTitle = defaultModel.title.toLowerCase(); switch (true) { diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index 7678c6ff9b..16d5ba67c6 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -32,13 +32,13 @@ export interface ModelPackage { export const models: { [key: string]: ModelPackage } = { pearai_model: { - title: "PearAI Model", + title: "PearAI Model (Recommended)", description: "Experience seamless, fully-managed LLM integration with PearAI, featuring the most advanced and current best-in-market language model.", params: { model: "pearai_model", contextLength: 300_000, - title: "PearAI Model", + title: "PearAI Model (Recommended)", systemMessage: "You are an expert software developer. You give helpful and concise responses.", },