mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Finalize LM API (#263415)
* Finalize BYOK API * More byok * Fix compile errors * Feedback * Fix fat fingering * Fix capabilities * Bump version * Rename contrib point + activation events * Update test * Add proposed api check to require authorization * Change comment
This commit is contained in:
@@ -25,7 +25,8 @@ suite('chat', () => {
|
||||
maxInputTokens: 100,
|
||||
maxOutputTokens: 100,
|
||||
isDefault: true,
|
||||
isUserSelectable: true
|
||||
isUserSelectable: true,
|
||||
capabilities: {}
|
||||
}];
|
||||
},
|
||||
async provideLanguageModelChatResponse(_model, _messages, _options, _progress, _token) {
|
||||
|
||||
@@ -20,6 +20,7 @@ suite('lm', function () {
|
||||
family: 'test',
|
||||
maxInputTokens: 100,
|
||||
maxOutputTokens: 100,
|
||||
capabilities: {}
|
||||
};
|
||||
|
||||
setup(function () {
|
||||
@@ -35,7 +36,7 @@ suite('lm', function () {
|
||||
|
||||
test('lm request and stream', async function () {
|
||||
|
||||
let p: vscode.Progress<vscode.LanguageModelTextPart | vscode.LanguageModelToolCallPart | vscode.LanguageModelDataPart | vscode.LanguageModelThinkingPart> | undefined;
|
||||
let p: vscode.Progress<vscode.LanguageModelResponsePart> | undefined;
|
||||
const defer = new DeferredPromise<void>();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user