ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / extensions / copilot / src / extension / test / vscode-node / endpoints.test.ts 403 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
import assert from 'assert' ;
import { SinonSandbox, createSandbox } from 'sinon' ;
import { LanguageModelChat, lm } from 'vscode' ;
import { CHAT_MODEL , IConfigurationService } from '../../../platform/configuration/common/configurationService' ;
import { InMemoryConfigurationService } from '../../../platform/configuration/test/common/inMemoryConfigurationService' ;
import { DefaultsOnlyConfigurationService } from '../../../platform/configuration/common/defaultsOnlyConfigurationService' ;
import { IChatModelInformation, ICompletionModelInformation, IEmbeddingModelInformation }
IModelMetadataFetcher
CopilotChatEndpoint
ExtensionContributedChatEndpoint
ITestingServicesAccessor
TokenizerType
Event
IInstantiationService
ProductionEndpointProvider
createExtensionTestingServices
onDidModelsRefresh Event None
IChatModelInformation
forceRefresh ICompletionModelInformation
model LanguageModelChat IChatModelInformation
IChatModelInformation
family IChatModelInformation
family
modelId IChatModelInformation
id modelId
vendor
name
version
model_picker_enabled
is_chat_default
is_chat_fallback
capabilities
supports streaming
type
tokenizer TokenizerType
family
IEmbeddingModelInformation
id
name
vendor
version
model_picker_enabled
is_chat_default
is_chat_fallback
capabilities
type
tokenizer TokenizerType
family
limits max_inputs
accessor ITestingServicesAccessor
endpointProvider ProductionEndpointProvider
sandbox SinonSandbox
accessor
endpointProvider accessor IInstantiationService ProductionEndpointProvider
sandbox
sandbox endpointProvider
sandbox
assert
assert
endpoint endpointProvider
assert endpoint model
onDidModelsRefresh Event None
_models IChatModelInformation
IChatModelInformation
_models
ICompletionModelInformation
IChatModelInformation
IChatModelInformation
family IChatModelInformation
family
IEmbeddingModelInformation
id
name
vendor
version
model_picker_enabled
is_chat_default
is_chat_fallback
capabilities
type
tokenizer TokenizerType
family
limits max_inputs
modelId overrides Partial IChatModelInformation IChatModelInformation
id modelId
vendor
name
version
model_picker_enabled
is_chat_default
is_chat_fallback
capabilities
supports streaming
type
tokenizer TokenizerType
family
overrides
configService InMemoryConfigurationService
endpointProvider ProductionEndpointProvider
sandbox SinonSandbox
collection
configService
collection IConfigurationService configService
accessor collection
endpointProvider accessor IInstantiationService ProductionEndpointProvider
sandbox
sandbox
models IChatModelInformation
endpointProvider _modelFetcher models
overrides Partial LanguageModelChat LanguageModelChat
id
vendor
name
family
version
maxInputTokens
capabilities supportsToolCalling supportsImageToText
overrides
LanguageModelChat
endpoint endpointProvider
assert endpoint model
endpointProvider vendor
endpoint endpointProvider
assert endpoint model
sandbox endpointProvider _authService
endpointProvider vendor
assert
endpointProvider
endpointProvider vendor
configService
endpoint endpointProvider
assert endpoint model
mainAgentModel vendor id
endpointProvider mainAgentModel
configService
utilityEndpoint endpointProvider
smallUtilityEndpoint endpointProvider
assert utilityEndpoint
assert utilityEndpoint model
assert smallUtilityEndpoint
assert smallUtilityEndpoint model
endpointProvider vendor id
configService
endpoint endpointProvider
assert endpoint
assert endpoint model
configService
endpointProvider vendor id
firstEndpoint endpointProvider
endpointProvider vendor id
secondEndpoint endpointProvider
assert firstEndpoint model
assert secondEndpoint model
endpointProvider vendor
fakeModel vendor id
sandbox lm fakeModel
configService
configService
endpoint endpointProvider
assert endpoint
assert endpoint model
configService
endpoint endpointProvider
assert endpoint
assert endpoint model
configService
endpoint endpointProvider
assert endpoint model
configService
endpoint endpointProvider
assert endpoint model
configService
endpoint endpointProvider
assert endpoint model
configService
endpoint endpointProvider
assert endpoint model
refreshCount
sub endpointProvider refreshCount
configService
configService
configService
assert refreshCount
sub
fakeModel vendor id
sandbox lm fakeModel
configService
endpoint endpointProvider
assert endpoint
assert endpoint model
sandbox lm
configService
endpoint endpointProvider
assert endpoint model
m1 vendor id
m2 vendor id
sandbox lm m1 m2
configService
endpoint endpointProvider
assert endpoint model
sandbox lm
configService
endpoint endpointProvider
assert endpoint model
subagentModel
subagentModel
endpoint endpointProvider subagentModel
assert endpoint
assert endpoint model subagentModel
from
'../../../platform/endpoint/common/endpointProvider'
;
import
{
}
from
'../../../platform/endpoint/node/modelMetadataFetcher'
;
import
{
}
from
'../../../platform/endpoint/node/copilotChatEndpoint'
;
import
{
}
from
'../../../platform/endpoint/vscode-node/extChatEndpoint'
;
import
{
}
from
'../../../platform/test/node/services'
;
import
{
}
from
'../../../util/common/tokenizer'
;
import
{
}
from
'../../../util/vs/base/common/event'
;
import
{
}
from
'../../../util/vs/platform/instantiation/common/instantiation'
;
import
{
}
from
'../../prompt/vscode-node/endpointProviderImpl'
;
import
{
}
from
'./services'
;
class
FakeModelMetadataFetcher
implements
IModelMetadataFetcher
{
public
=
.
;
async
getAllChatModels
(
)
:
Promise
<
[
]
>
{
return
[
]
;
}
async
getAllCompletionModels
(
:
boolean
)
:
Promise
<
[
]
>
{
return
[
]
;
}
async
getChatModelFromApiModel
(
:
)
:
Promise
<
|
undefined
>
{
return
undefined
;
}
async
getCopilotUtilityModel
(
)
:
Promise
<
>
{
return
this
.
_fakeChatModel
(
'copilot-utility'
)
;
}
async
getChatModelFromCapiFamily
(
:
string
)
:
Promise
<
>
{
return
this
.
_fakeChatModel
(
)
;
}
private
_fakeChatModel
(
:
string
)
:
{
return
{
:
,
:
'fake-vendor'
,
:
'fake-name'
,
:
'fake-version'
,
:
false
,
:
false
,
:
false
,
:
{
:
{
:
true
}
,
:
'chat'
,
:
.
O200K
,
:
'fake-family'
}
}
;
}
async
getEmbeddingsModel
(
)
:
Promise
<
>
{
return
{
:
'text-embedding-3-small'
,
:
'fake-name'
,
:
'fake-vendor'
,
:
'fake-version'
,
:
false
,
:
false
,
:
false
,
:
{
:
'embeddings'
,
:
.
O200K
,
:
'text-embedding-3-small'
,
:
{
:
256
}
}
}
;
}
}
suite
(
'Endpoint Class Test'
,
function
(
)
{
let
:
;
let
:
;
let
:
;
setup
(
(
)
=>
{
=
createExtensionTestingServices
(
)
.
createTestingAccessor
(
)
;
=
.
get
(
)
.
createInstance
(
)
;
=
createSandbox
(
)
;
.
replace
(
,
'_modelFetcher'
,
new
FakeModelMetadataFetcher
(
)
)
;
}
)
;
teardown
(
(
)
=>
{
.
restore
(
)
;
}
)
;
test
(
'Model names have proper casing'
,
async
function
(
)
{
.
strictEqual
(
CHAT_MODEL
.
GPT41
,
'gpt-4.1-2025-04-14'
,
'Incorrect GPT 41 model name, changing this will break requests.'
)
;
.
strictEqual
(
CHAT_MODEL
.
GPT4OMINI
,
'gpt-4o-mini'
,
'Incorrect GPT 4o mini model name, changing this will break requests.'
)
;
}
)
;
test
(
'resolves the dictation cleanup Nano alias to GPT-5.4 Nano'
,
async
function
(
)
{
const
=
await
.
getChatEndpoint
(
'copilot-dictation-cleanup-nano'
)
;
.
strictEqual
(
.
,
'gpt-5.4-nano'
)
;
}
)
;
}
)
;
class
CopilotMatchableModelMetadataFetcher
implements
IModelMetadataFetcher
{
public
=
.
;
constructor
(
private
readonly
:
[
]
)
{
}
async
getAllChatModels
(
)
:
Promise
<
[
]
>
{
return
this
.
;
}
async
getAllCompletionModels
(
)
:
Promise
<
[
]
>
{
return
[
]
;
}
async
getChatModelFromApiModel
(
)
:
Promise
<
|
undefined
>
{
return
undefined
;
}
async
getCopilotUtilityModel
(
)
:
Promise
<
>
{
return
makeChatModel
(
'copilot-utility'
)
;
}
async
getChatModelFromCapiFamily
(
:
string
)
:
Promise
<
>
{
return
makeChatModel
(
)
;
}
async
getEmbeddingsModel
(
)
:
Promise
<
>
{
return
{
:
'text-embedding-3-small'
,
:
'fake-name'
,
:
'fake-vendor'
,
:
'fake-version'
,
:
false
,
:
false
,
:
false
,
:
{
:
'embeddings'
,
:
.
O200K
,
:
'text-embedding-3-small'
,
:
{
:
256
}
}
}
;
}
}
function
makeChatModel
(
:
string
,
:
<
>
=
{
}
)
:
{
return
{
:
,
:
'copilot'
,
:
` name- ${ modelId} `
,
:
'fake-version'
,
:
false
,
:
false
,
:
false
,
:
{
:
{
:
true
}
,
:
'chat'
,
:
.
O200K
,
:
'fake-family'
,
}
,
...
,
}
;
}
suite
(
'ProductionEndpointProvider — utility model overrides'
,
(
)
=>
{
let
:
;
let
:
;
let
:
;
setup
(
(
)
=>
{
const
=
createExtensionTestingServices
(
)
;
=
new
InMemoryConfigurationService
(
new
DefaultsOnlyConfigurationService
(
)
)
;
.
define
(
,
)
;
const
=
.
createTestingAccessor
(
)
;
=
.
get
(
)
.
createInstance
(
)
;
=
createSandbox
(
)
;
}
)
;
teardown
(
(
)
=>
{
.
restore
(
)
;
}
)
;
function
setFetcher
(
:
[
]
)
:
void
{
.
=
new
CopilotMatchableModelMetadataFetcher
(
)
;
}
function
makeFakeLanguageModelChat
(
:
<
>
)
:
{
return
{
:
'fake-id'
,
:
'fake-vendor'
,
:
'fake-name'
,
:
'fake-family'
,
:
'fake-version'
,
:
100_000
,
:
{
:
false
,
:
false
}
,
...
,
}
as
;
}
test
(
'no override configured — falls through to default copilot-utility resolution'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'no override configured — uses the Copilot utility model when the selected main agent model is BYOK and a Copilot token is available'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'anthropic'
}
)
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'no override configured — rejects when the selected main agent model is BYOK and no Copilot token is available (air-gapped)'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
.
stub
(
.
,
'hasCopilotTokenSource'
)
.
get
(
(
)
=>
false
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'anthropic'
}
)
)
;
await
.
rejects
(
(
)
=>
.
getChatEndpoint
(
'copilot-utility'
)
,
/ No utility model is configured /
)
;
}
)
;
test
(
'Copilot default applies when the selected main agent model is BYOK'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'anthropic'
}
)
)
;
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'copilot'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'main agent default uses the selected BYOK model for utility families'
,
async
(
)
=>
{
const
=
makeFakeLanguageModelChat
(
{
:
'customendpoint'
,
:
'qwen3.6'
}
)
;
await
.
getChatEndpoint
(
)
;
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'mainAgent'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility-small'
)
;
.
ok
(
instanceof
ExtensionContributedChatEndpoint
)
;
.
strictEqual
(
.
,
'qwen3.6'
)
;
.
ok
(
instanceof
ExtensionContributedChatEndpoint
)
;
.
strictEqual
(
.
,
'qwen3.6'
)
;
}
)
;
test
(
'BYOK utility default does not replace utility models for a Copilot main agent model'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'copilot'
,
:
'gpt-5'
}
)
)
;
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'mainAgent'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
ok
(
instanceof
CopilotChatEndpoint
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'main agent default follows changes to the selected BYOK model'
,
async
(
)
=>
{
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'mainAgent'
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'customendpoint'
,
:
'qwen3.6'
}
)
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'customendpoint'
,
:
'gemma4'
}
)
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'qwen3.6'
)
;
.
strictEqual
(
.
,
'gemma4'
)
;
}
)
;
test
(
'explicit utility override applies when the selected main agent model is BYOK'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
getChatEndpoint
(
makeFakeLanguageModelChat
(
{
:
'anthropic'
}
)
)
;
const
=
makeFakeLanguageModelChat
(
{
:
'anthropic'
,
:
'claude-haiku-4.5'
}
)
;
.
stub
(
,
'selectChatModels'
)
.
resolves
(
[
]
)
;
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'mainAgent'
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'anthropic/claude-haiku-4.5'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
ok
(
instanceof
ExtensionContributedChatEndpoint
)
;
.
strictEqual
(
.
,
'claude-haiku-4.5'
)
;
}
)
;
test
(
'copilot-vendor override resolves to the matching model from the model fetcher'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
,
makeChatModel
(
'gpt-4o-mini'
)
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'copilot/gpt-4o-mini'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
ok
(
instanceof
CopilotChatEndpoint
)
;
.
strictEqual
(
.
,
'gpt-4o-mini'
)
;
}
)
;
test
(
'copilot-vendor override falls back to default when no copilot model matches'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'copilot/gpt-4o-mini'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'copilot-vendor override falls back to default when more than one copilot model matches (ambiguous)'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
,
makeChatModel
(
'gpt-4o-mini'
)
,
makeChatModel
(
'gpt-4o-mini'
)
,
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'copilot/gpt-4o-mini'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'malformed override falls back to default'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'no-slash'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'non-string override values fall back to default and do not throw'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
42
as
unknown
as
string
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'configuration change fires onDidModelsRefresh so cached endpoints get invalidated'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
let
=
0
;
const
=
.
onDidModelsRefresh
(
(
)
=>
++
)
;
try
{
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'copilot/gpt-4o-mini'
)
;
await
.
setNonExtensionConfig
(
'chat.utilitySmallModel'
,
'copilot/gpt-4o-mini'
)
;
await
.
setNonExtensionConfig
(
'chat.byokUtilityModelDefault'
,
'mainAgent'
)
;
.
strictEqual
(
,
3
)
;
}
finally
{
.
dispose
(
)
;
}
}
)
;
test
(
'non-copilot vendor override resolves to an extension-contributed endpoint'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
const
=
makeFakeLanguageModelChat
(
{
:
'anthropic'
,
:
'claude-haiku-4.5'
}
)
;
.
stub
(
,
'selectChatModels'
)
.
resolves
(
[
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'anthropic/claude-haiku-4.5'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
ok
(
instanceof
ExtensionContributedChatEndpoint
)
;
.
strictEqual
(
.
,
'claude-haiku-4.5'
)
;
}
)
;
test
(
'non-copilot vendor override falls back when lm.selectChatModels returns no matches'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
.
stub
(
,
'selectChatModels'
)
.
resolves
(
[
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'anthropic/claude-haiku-4.5'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'non-copilot vendor override falls back when lm.selectChatModels returns multiple matches (ambiguous)'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
const
=
makeFakeLanguageModelChat
(
{
:
'anthropic'
,
:
'claude-haiku-4.5'
}
)
;
const
=
makeFakeLanguageModelChat
(
{
:
'anthropic'
,
:
'claude-haiku-4.5'
}
)
;
.
stub
(
,
'selectChatModels'
)
.
resolves
(
[
,
]
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'anthropic/claude-haiku-4.5'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'non-copilot vendor override falls back when lm.selectChatModels throws'
,
async
(
)
=>
{
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
]
)
;
.
stub
(
,
'selectChatModels'
)
.
rejects
(
new
Error
(
'boom'
)
)
;
await
.
setNonExtensionConfig
(
'chat.utilityModel'
,
'anthropic/claude-haiku-4.5'
)
;
const
=
await
.
getChatEndpoint
(
'copilot-utility'
)
;
.
strictEqual
(
.
,
'copilot-utility'
)
;
}
)
;
test
(
'arbitrary CAPI model family resolves to that model (execution/search subagent override)'
,
async
(
)
=>
{
const
=
'gemini-3-flash'
;
setFetcher
(
[
makeChatModel
(
'copilot-utility'
)
,
makeChatModel
(
)
]
)
;
const
=
await
.
getChatEndpoint
(
)
;
.
ok
(
instanceof
CopilotChatEndpoint
)
;
.
strictEqual
(
.
,
)
;
}
)
;
}
)
;