ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OpenAI, Raw } from '@vscode/prompt-tsx';
import * as vscode from 'vscode';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { BlockedExtensionService, IBlockedExtensionService } from '../../../../platform/chat/common/blockedExtensionService';
import { IChatMLFetcher, type IFetchMLOptions } from '../../../../platform/chat/common/chatMLFetcher';
import { ChatLocation, type ChatResponse, type
MockChatMLFetcher
ConfigKey IConfigurationService
IChatModelInformation ModelSupportedEndpoint
CustomDataPartMimeTypes
ExtensionContributedChatEndpoint
IChatEndpoint IEndpointBody
ITestingServicesAccessor
TokenizerType
Event
DisposableStore
SyncDescriptor
IInstantiationService
createExtensionUnitTestingServices
OpenAICompatibleLanguageModelChatInformation
IBYOKStorageService
CustomEndpointBYOKModelProvider CustomEndpointOAIEndpoint hasExplicitApiPath resolveCustomEndpointUrl
customResponsesModelId
customResponsesMarker
model OpenAICompatibleLanguageModelChatInformationCustomEndpointModelProviderConfig IChatEndpoint
model
_serviceBrand
onDidMakeChatMLRequest EventNone
requests IFetchMLOptions
delegate
options IFetchMLOptions ChatResponse
requestsoptions
delegate
ChatResponses
delegate
IBYOKStorageService
endpoint IChatEndpoint IEndpointBody
endpoint
debugName
messages
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindOpaque
value
type CustomDataPartMimeTypesStatefulMarker
value
modelId customResponsesModelId
marker customResponsesMarker
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
requestId
postOptions
ignoreStatefulMarker
finishedCb
location ChatLocationOther
disposables
accessor ITestingServicesAccessor
instaService IInstantiationService
chatMLFetcher CapturingChatMLFetcher
testingServiceCollection
testingServiceCollectionIBlockedExtensionService BlockedExtensionService
chatMLFetcher
testingServiceCollectionIChatMLFetcher chatMLFetcher
accessor disposablestestingServiceCollection
instaService accessorIInstantiationService
disposables
url
urlurl
url
urlurl
url
urlurl
chat
responses
messages
bare
baseV1
chat
responses
messages
bare
baseV1
zeroDataRetentionEnabled IChatEndpoint
provider instaServiceTestCustomEndpointBYOKModelProvider
tokenSource disposables
modelConfiguration CustomEndpointModelConfig
id customResponsesModelId
name
url
apiType
maxInputTokens
maxOutputTokens
toolCalling
vision
zeroDataRetentionEnabled
modelConfigurationzeroDataRetentionEnabled zeroDataRetentionEnabled
model provider
silent
configuration
apiKey
models modelConfiguration
tokenSourcetoken
providermodel
supportedEndpoints ModelSupportedEndpoint IChatModelInformation
id
name
vendor
version
model_picker_enabled
is_chat_default
is_chat_fallback
supported_endpoints supportedEndpoints
capabilities
type
family
tokenizer TokenizerType
supports
parallel_tool_calls
streaming
tool_calls
vision
prediction
thinking
limits
max_prompt_tokens
max_output_tokens
max_context_window_tokens
endpoint
body endpoint
storePresent body
store bodystore
previousResponseId bodyprevious_response_id
storePresent
store
previousResponseId customResponsesMarker
endpoint
body endpoint
storePresent body
store bodystore
previousResponseId bodyprevious_response_id
storePresent
store
previousResponseId customResponsesMarker
endpoint
body endpoint
storePresent body
store bodystore
previousResponseId bodyprevious_response_id
storePresent
store
previousResponseId
endpoint instaServiceCustomEndpointOAIEndpoint
ModelSupportedEndpointMessages
headers endpoint
apiType endpointapiType
contentType headers
xApiKey headers
anthropicVersion headers
authorization headers
apiType
contentType
xApiKey
anthropicVersion
authorization
provider instaServiceTestCustomEndpointBYOKModelProvider
tokenSource disposables
baseModel
name
url
apiType
maxInputTokens
maxOutputTokens
toolCalling
vision
thinking
variants
id
adaptiveThinking
id
minThinkingBudget
maxThinkingBudget
id
model baseModel model
results variants configuredModel
model provider
silent
configuration
apiKey
models configuredModel
tokenSourcetoken
endpoint providermodel
body endpoint
debugName
messages
requestId
postOptions max_tokens
modelCapabilities enableThinking
finishedCb
location ChatLocationOther
id configuredModelid
apiType endpointapiType
supportsAdaptiveThinking endpointsupportsAdaptiveThinking
minThinkingBudget endpointminThinkingBudget
maxThinkingBudget endpointmaxThinkingBudget
thinking bodythinking
results
id
apiType
supportsAdaptiveThinking
minThinkingBudget
maxThinkingBudget
thinking type display
id
apiType
supportsAdaptiveThinking
minThinkingBudget
maxThinkingBudget
thinking type budget_tokens
id
apiType
supportsAdaptiveThinking
minThinkingBudget
maxThinkingBudget
thinking
provider instaServiceTestCustomEndpointBYOKModelProvider
tokenSource disposables
results
apiType
model provider
silent
configuration
apiKey
models
id apiType
name
url
apiType
maxInputTokens
maxOutputTokens
toolCalling
vision
adaptiveThinking
minThinkingBudget
maxThinkingBudget
tokenSourcetoken
endpoint providermodel
results
apiType endpointapiType
supportsAdaptiveThinking endpointsupportsAdaptiveThinking
minThinkingBudget endpointminThinkingBudget
maxThinkingBudget endpointmaxThinkingBudget
results
apiType
supportsAdaptiveThinking
minThinkingBudget
maxThinkingBudget
apiType
supportsAdaptiveThinking
minThinkingBudget
maxThinkingBudget
provider instaServiceTestCustomEndpointBYOKModelProvider
tokenSource disposables
model provider
silent
configuration
apiKey
models
id
name
url
apiType
maxInputTokens
maxOutputTokens
toolCalling
vision
thinking
adaptiveThinking
tokenSourcetoken
enableThinking
provider
model
vscodeLanguageModelChatMessageRoleUser
requestInitiator
tools
toolMode vscodeLanguageModelChatToolModeAuto
modelOptions _enableThinking enableThinking
tokenSourcetoken
chatMLFetcherrequestsrequest requestmodelCapabilitiesenableThinking
provider instaServiceTestCustomEndpointBYOKModelProvider
tokenSource disposables
model provider
silent
configuration
apiKey
models
id customResponsesModelId
name
url
apiType
maxInputTokens
maxOutputTokens
toolCalling
vision
tokenSourcetoken
languageModel
model
messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
options vscodeLanguageModelChatRequestOptions
token vscodeCancellationToken
responseParts vscodeLanguageModelResponsePart2
providermodel messages
requestInitiator
tools optionstools
toolMode optionstoolMode vscodeLanguageModelChatToolModeAuto
modelOptions optionsmodelOptions
part responsePartspart token
stream
responseParts
vscodeLanguageModelChat
extensionEndpoint instaServiceExtensionContributedChatEndpoint languageModel
configurationService accessorIConfigurationService
conversationId
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
configurationServiceConfigKeyResponsesApiPromptCacheKeyEnabled
directEndpoint providermodel
directPromptCacheKey directEndpoint
debugName
messages
conversationId
requestId
postOptions
finishedCb
location ChatLocationAgent
prompt_cache_key
enabled requestConversationId
configurationServiceConfigKeyResponsesApiPromptCacheKeyEnabled enabled
requestIndex chatMLFetcherrequestslength
extensionEndpoint
debugName
messages
conversationId requestConversationId
finishedCb
location ChatLocationAgent
requestOptions
tokenSourcetoken
request chatMLFetcherrequestsrequestIndex
request
requestendpoint
request
requestId
postOptions requestrequestOptions
prompt_cache_key
direct directPromptCacheKey
bridgedEnabled conversationId
disabled conversationId
missingConversationId
direct
bridgedEnabled
disabled
missingConversationId
endpoint instaServiceCustomEndpointOAIEndpoint
headers endpoint
apiType endpointapiType
authorization headers
xApiKey headers
apiType
authorization
xApiKey
endpoint instaServiceCustomEndpointOAIEndpoint
headers endpoint
authApiKey headers
authorization headers
authApiKey
authorization
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
authApiKey headers
authorization headers
authApiKey
authorization
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
authApiKey headers
authorization headers
authApiKey
authorization
metadata ModelSupportedEndpointMessages
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
xApiKey headers
authorization headers
anthropicVersion headers
xApiKey
authorization
anthropicVersion
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
headers
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
googKey headers
authorization headers
apiKey headers
googKey
authorization
apiKey
endpoint instaServiceCustomEndpointOAIEndpoint
endpointownsAuthorization
metadata IChatModelInformation
modelOptions
temperature
top_p
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
body endpoint
debugName
messages
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
requestId
postOptions
temperature
top_p
stream
finishedCb
location ChatLocationOther
temperature bodytemperature
topP bodytop_p
temperature
topP
metadata IChatModelInformation
modelOptions
temperature
top_p
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
body endpoint
debugName
messages
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
requestId
postOptions
temperature
top_p
stream
finishedCb
location ChatLocationOther
temperature bodytemperature
topP bodytop_p
temperature
topP
metadata IChatModelInformation
modelOptions
temperature
top_p
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
body endpoint
debugName
messages
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
requestId
requestOptions
temperature
top_p
postOptions
temperature
top_p
stream
finishedCb
location ChatLocationOther
temperature bodytemperature
topP bodytop_p
temperature
topP
results
supportedEndpoints ModelSupportedEndpointResponses
url
supportedEndpoints ModelSupportedEndpointMessages
url
supportedEndpoints url
metadata IChatModelInformation
supportedEndpoints
modelOptions
temperature
top_p
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
url
body endpoint
debugName
messages
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
requestId
postOptions
temperature
top_p
stream
finishedCb
location ChatLocationOther
apiType endpointapiType
temperature bodytemperature
topP bodytop_p
results
apiType
temperature
topP
apiType
temperature
topP
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
authorization headers
apiKey headers
authorization
apiKey
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
authApiKey headers
lowercaseApiKey headers
authorization headers
authApiKey
lowercaseApiKey
authorization
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
subKey headers
authorization headers
subKey
authorization
metadata
metadatarequestHeaders
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
headers endpoint
apikey headers
authorization headers
dashedApiKey headers
apikey
authorization
dashedApiKey
metadata
metadataid
metadatacapabilitiesfamily
endpoint instaServiceCustomEndpointOAIEndpoint
metadata
originalToolCallId
body endpoint
debugName
messages
role RawChatRoleAssistant
content
toolCalls
id originalToolCallId
type
name arguments
role RawChatRoleTool
content type RawChatCompletionContentPartKindText text
toolCallId originalToolCallId
requestId
postOptions temperature top_p
finishedCb
location ChatLocationOther
body
messages
role OpenAIChatRoleAssistant
tool_calls id
role OpenAIChatRoleTool
tool_call_id
temperature
top_p
thinkingMetadata IChatModelInformation
capabilities
capabilities
supports
capabilitiessupports
thinking
endpoint instaServiceCustomEndpointOAIEndpoint
thinkingMetadata
thinkingMessage RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindOpaque
value
type
thinking
id
text
body endpoint
debugName
messages thinkingMessage
requestId
postOptions
finishedCb
location
messages bodymessages
messagesreasoning_content
messagesreasoning
messagescot_summary