Skip to content

Set specific model for prompts and modes #252893

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

Merged
merged 7 commits into from
Jun 30, 2025
Merged

Conversation

aeschli
Copy link
Contributor

@aeschli aeschli commented Jun 29, 2025

@aeschli aeschli enabled auto-merge (squash) June 29, 2025 21:25
@aeschli aeschli self-assigned this Jun 29, 2025
@vs-code-engineering vs-code-engineering bot added this to the June 2025 milestone Jun 29, 2025
roblourens
roblourens previously approved these changes Jun 29, 2025
@@ -509,6 +509,16 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
}
}

public switchModelByName(modelName: string): boolean {
const models = this.getModels();
const model = models.find(m => m.metadata.name === modelName);
Copy link
Member

Choose a reason for hiding this comment

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

BYOK and built-in gpt-4.1 have the same name. You could use ID instead, or include a vendor field, or just do it this way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. I want the same label as in model picker. The id could be confusing.
For BYK I guess it's up to the user to choose a better name? Al

I can look into additional (optional) qualification if this becomes a real issue.

Copy link
Member

Choose a reason for hiding this comment

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

For BYOK, the name comes from the model provider. So here for example I have two gpt-4.1, no way to tell which I'm paying real money for :)
image

What else should the name be if not 'GPT 4.1'? In every other scenario it's presented in some context where I know which provider it's from.

Copy link
Member

Choose a reason for hiding this comment

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

Can continue in #253131

alexr00
alexr00 previously approved these changes Jun 30, 2025
@aeschli aeschli merged commit 6bd21d4 into main Jun 30, 2025
8 checks passed
@aeschli aeschli deleted the aeschli/jittery-kingfisher-233 branch June 30, 2025 10:44
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