Skip to content

Commit

Permalink
Added recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
nang-dev committed Feb 4, 2025
1 parent 27fddca commit 4cdbc4f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/src/quickEdit/QuickEditQuickPick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class QuickEdit {
'perplexity',
];

private DEFAULT_MODEL = 'PearAI Model';
private DEFAULT_MODEL = 'PearAI Model (Recommended)';


constructor(
Expand Down
6 changes: 3 additions & 3 deletions gui/src/components/modelSelection/ModelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ function ModelOption({
src={`${window.vscMediaUrl}/logos/pearai-color.png`}
className="w-4 h-4 object-contain"
/>
{option.title !== 'PearAI Model' && <img
{option.title !== 'PearAI Model (Recommended)' && <img
src={`${window.vscMediaUrl}/logos/${(() => {
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';
Expand Down Expand Up @@ -323,7 +323,7 @@ function ModelSelect() {
src={`${window.vscMediaUrl}/logos/pearai-color.png`}
className="w-[15px] h-[15px] object-contain"
/>
{defaultModel.title !== 'PearAI Model' && <img
{defaultModel.title !== 'PearAI Model (Recommended)' && <img
src={`${window.vscMediaUrl}/logos/${(() => {
const modelTitle = defaultModel.title.toLowerCase();
switch (true) {
Expand Down
4 changes: 2 additions & 2 deletions gui/src/pages/AddNewModel/configs/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
Expand Down

0 comments on commit 4cdbc4f

Please sign in to comment.