Skip to content

Commit fced64e

Browse files
authored
Add note about ChatRequest#model
1 parent 898d0f7 commit fced64e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

release-notes/v1_95.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,14 @@ Welcome views now support the ability to render codicons. You can do so using th
398398

399399
![a sample welcome view showing the use of text, links, buttons, and codicons](images/1_95/welcome-view-codicons.png)
400400

401+
### Chat participant access to model picker
402+
403+
You may have noticed the model picker in the chat view, which allows you to select the model used for a chat request.
404+
405+
![Copilot model picker control in the Chat view enables switching to another language model.](./images/1_94/copilot-model-picker.png)
406+
407+
Your chat participant extension needs to adopt a new API in order to use this. We just finalized a new `model` property on the `ChatRequest` object, which will be set to the `LanguageModelChat` instance for the model in the picker. You can use this instead of the `lm.selectChatModels` method. If your extension wants to use a particular model besides the selected one, you can still use `lm.selectChatModels` instead.
408+
401409
## Preview Features
402410

403411
### TypeScript 5.7

0 commit comments

Comments
 (0)