-
Notifications
You must be signed in to change notification settings - Fork 33.5k
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
Conversation
@@ -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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can continue in #253131
Fixes https://github.com/microsoft/vscode-copilot/issues/18375