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 type { Disposable, LanguageModelChatInformation, LanguageModelDataPart, LanguageModelTextPart, LanguageModelThinkingPart, LanguageModelToolCallPart, LanguageModelToolResultPart } from 'vscode';
import { CopilotToken } from '../../../platform/authentication/common/copilotToken';
import { EndpointEditToolName, IChatModelInformation, IChatModelRequestOptions, ModelSupportedEndpoint } from '../../../platform/endpoint/common/endpointProvider';
import { TokenizerType } from '../../../util/common/tokenizer';
export const enum BYOKAuthType {
/**
* Requires a single API key for all models (e.g., OpenAI)
*/
GlobalApiKey,
/**
* Requires both deployment URL and API key per model (e.g., Azure)
*/
PerModelDeployment
None
modelId
capabilities BYOKModelCapabilities
LanguageModelTextPart LanguageModelToolCallPart LanguageModelDataPart LanguageModelThinkingPart LanguageModelToolResultPart
apiKey
apiKey
deploymentUrl
BYOKGlobalKeyModelConfig BYOKPerModelConfig BYOKNoAuthModelConfig
name
url
maxInputTokens
maxOutputTokens
contextWindow
toolCalling
vision
thinking
adaptiveThinking
minThinkingBudget
maxThinkingBudget
streaming
editTools EndpointEditToolName
requestHeaders Record
modelOptions IChatModelRequestOptions
supportedEndpoints ModelSupportedEndpoint
zeroDataRetentionEnabled
supportsReasoningEffort
defaultReasoningEffort
reasoningEffortFormat
name
authType BYOKAuthType
knownModels BYOKKnownModels
apiKey id name
config BYOKModelConfig Disposable
Record BYOKModelCapabilities
config BYOKModelConfig config BYOKGlobalKeyModelConfig
config config
config BYOKModelConfig config BYOKPerModelConfig
config config
config BYOKModelConfig config BYOKNoAuthModelConfig
config config
capabilities PickBYOKModelCapabilities contextWindow maxInputTokens maxOutputTokens
contextWindow capabilitiescontextWindow capabilitiesmaxInputTokens capabilitiesmaxOutputTokens
maxOutputTokens MathcapabilitiesmaxOutputTokens contextWindow
remainingInputBudget Math contextWindow maxOutputTokens
maxInputTokens MathcapabilitiesmaxInputTokens remainingInputBudget remainingInputBudget
contextWindow maxInputTokens maxOutputTokens
modelId providerName knownModels BYOKKnownModels modelCapabilities BYOKModelCapabilities IChatModelInformation
knownModelInfo modelCapabilities
knownModels knownModelInfo
knownModelInfo knownModelsmodelId
modelName knownModelInfoname modelId
limits knownModelInfo
knownModelInfo
contextWindow maxInputTokens maxOutputTokens
modelInfo IChatModelInformation
id modelId
name modelName
vendor providerName
version
capabilities
type
family modelId
supports
streaming knownModelInfostreaming
tool_calls knownModelInfotoolCalling
vision knownModelInfovision
thinking knownModelInfothinking
adaptive_thinking knownModelInfoadaptiveThinking
min_thinking_budget knownModelInfominThinkingBudget
max_thinking_budget knownModelInfomaxThinkingBudget
reasoning_effort knownModelInfosupportsReasoningEffort
tokenizer TokenizerType
limits
max_context_window_tokens limitscontextWindow
max_prompt_tokens limitsmaxInputTokens
max_output_tokens limitsmaxOutputTokens
is_chat_default
is_chat_fallback
model_picker_enabled
supported_endpoints knownModelInfosupportedEndpoints
zeroDataRetentionEnabled knownModelInfozeroDataRetentionEnabled
modelOptions knownModelInfomodelOptions
reasoningEffortFormat knownModelInforeasoningEffortFormat
knownModelInforequestHeaders ObjectknownModelInforequestHeaderslength
modelInforequestHeaders knownModelInforequestHeaders
modelInfo
providerName knownModels BYOKKnownModels LanguageModelChatInformation
knownModels
ObjectknownModelsid capabilities providerName id capabilities
providerName id capabilities BYOKModelCapabilities LanguageModelChatInformation
limits capabilities
id
name capabilitiesname
version
maxOutputTokens limitsmaxOutputTokens
maxInputTokens limitsmaxInputTokens
family id
tooltip
multiplierNumeric
isUserSelectable
capabilities
toolCalling capabilitiestoolCalling
imageInput capabilitiesvision
editTools capabilitieseditTools
hasGitHubSession copilotToken OmitCopilotToken
hasGitHubSession
copilotToken
copilotTokenisInternal copilotTokenisIndividual copilotToken
apiKey
deleted
cancelled
providerName modelId
providerName apiKey authType BYOKAuthType modelId
providerName authType BYOKAuthType modelId
providerName
storageService IBYOKStorageServiceLike
providerName reconfigure
HandleAPIKeyUpdateResult
existingKey storageServiceproviderName
isReconfiguring existingKey
newAPIKey providerName isReconfiguring
newAPIKey
apiKey deleted cancelled
newAPIKey
storageServiceproviderName BYOKAuthTypeGlobalApiKey
apiKey deleted cancelled
storageServiceproviderName newAPIKey BYOKAuthTypeGlobalApiKey
apiKey newAPIKey deleted cancelled