@@ -19042,7 +19042,7 @@ declare module 'vscode' {
19042
19042
readonly id: string;
19043
19043
19044
19044
/**
19045
- * A well-know identifier of the vendor of the language model, a sample is `copilot`, but
19045
+ * A well-known identifier of the vendor of the language model. An example is `copilot`, but
19046
19046
* values are defined by extensions contributing chat models and need to be looked up with them.
19047
19047
*/
19048
19048
readonly vendor: string;
@@ -19195,12 +19195,11 @@ declare module 'vscode' {
19195
19195
export const onDidChangeChatModels: Event<void>;
19196
19196
19197
19197
/**
19198
- * Select chat models by a {@link LanguageModelChatSelector selector}. This can yield in multiple or no chat models and
19198
+ * Select chat models by a {@link LanguageModelChatSelector selector}. This can yield multiple or no chat models and
19199
19199
* extensions must handle these cases, esp. when no chat model exists, gracefully.
19200
19200
*
19201
19201
* ```ts
19202
- *
19203
- * const models = await vscode.lm.selectChatModels({family: 'gpt-3.5-turbo'})!;
19202
+ * const models = await vscode.lm.selectChatModels({ family: 'gpt-3.5-turbo' });
19204
19203
* if (models.length > 0) {
19205
19204
* const [first] = models;
19206
19205
* const response = await first.sendRequest(...)
@@ -19210,7 +19209,11 @@ declare module 'vscode' {
19210
19209
* }
19211
19210
* ```
19212
19211
*
19213
- * *Note* that extensions can hold-on to the results returned by this function and use them later. However, when the
19212
+ * A selector can be written to broadly match all models of a given vendor or family, or it can narrowly select one model by ID.
19213
+ * Keep in mind that the available set of models will change over time, but also that prompts may perform differently in
19214
+ * different models.
19215
+ *
19216
+ * *Note* that extensions can hold on to the results returned by this function and use them later. However, when the
19214
19217
* {@link onDidChangeChatModels}-event is fired the list of chat models might have changed and extensions should re-query.
19215
19218
*
19216
19219
* @param selector A chat model selector. When omitted all chat models are returned.
0 commit comments