File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ import { RequestType } from '@vscode/copilot-api' ;
6
7
import { Raw } from '@vscode/prompt-tsx' ;
7
8
import { ChatCompletionContentPartKind } from '@vscode/prompt-tsx/dist/base/output/rawTypes' ;
8
9
import { FetchStreamSource } from '../../../platform/chat/common/chatMLFetcher' ;
@@ -1068,7 +1069,7 @@ export class XtabProvider implements IStatelessNextEditProvider {
1068
1069
const endpoint = this . instaService . createInstance ( ChatEndpoint , {
1069
1070
id : modelName ,
1070
1071
name : 'nes.nextCursorPosition' ,
1071
- urlOrRequestMetadata : url ,
1072
+ urlOrRequestMetadata : url ? url : { type : RequestType . ProxyChatCompletions } ,
1072
1073
model_picker_enabled : false ,
1073
1074
is_chat_default : false ,
1074
1075
is_chat_fallback : false ,
@@ -1095,9 +1096,9 @@ export class XtabProvider implements IStatelessNextEditProvider {
1095
1096
debugName : 'nes.nextCursorPosition' ,
1096
1097
finishedCb : undefined ,
1097
1098
location : ChatLocation . Other ,
1098
- requestOptions : {
1099
+ requestOptions : secretKey ? {
1099
1100
secretKey,
1100
- }
1101
+ } : undefined ,
1101
1102
} ,
1102
1103
CancellationToken . None
1103
1104
) ;
You can’t perform that action at this time.
0 commit comments