mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
Allow vscode.LanguageModelChatInformation#isDefault to be per chat location (#287527)
We have `isDefault` which allows a model to indicate that it is the best/most-recommended model. This PR extends this concept to define default by location, e.g for inline chat a different default model might apply than for panel chat or terminal chat
This commit is contained in:
@@ -36,7 +36,7 @@ declare module 'vscode' {
|
||||
* Whether or not this will be selected by default in the model picker
|
||||
* NOT BEING FINALIZED
|
||||
*/
|
||||
readonly isDefault?: boolean;
|
||||
readonly isDefault?: boolean | { [K in ChatLocation]?: boolean };
|
||||
|
||||
/**
|
||||
* Whether or not the model will show up in the model picker immediately upon being made known via {@linkcode LanguageModelChatProvider.provideLanguageModelChatInformation}.
|
||||
|
||||
Reference in New Issue
Block a user