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 { RequestType } from '@vscode/copilot-api';
import type { CancellationToken } from 'vscode';
import { CallTracker, TelemetryCorrelationId } from '../../../util/common/telemetryCorrelationId';
import { Limiter } from '../../../util/vs/base/common/async';
import { generateUuid } from '../../../util/vs/base/common/uuid';
import { IInstantiationService } from '../../../util/vs/platform/instantiation/common/instantiation';
import { IAuthenticationService } from '../../authentication/common/authentication';
import IEndpointProvider
IEnvService
getGithubMetadataHeaders
logExecTime
ILogService
IEmbeddingsEndpoint postRequest
GenAiAttr GenAiOperationName GenAiProviderName
IOTelService SpanKind SpanStatusCode
ITelemetryService
ComputeEmbeddingsOptions Embedding EmbeddingType EmbeddingTypeInfo EmbeddingVector Embeddings IEmbeddingsComputer getWellKnownEmbeddingTypeInfo
type
embeddings EmbeddingVector
type
reason
_serviceBrand
batchSize
_authService IAuthenticationService
_envService IEnvService
_logService ILogService
_telemetryService ITelemetryService
_endpointProvider IEndpointProvider
_instantiationService IInstantiationService
_otelService IOTelService
embeddingType EmbeddingType
inputs
options ComputeEmbeddingsOptions
telemetryInfo TelemetryCorrelationId
cancellationToken CancellationToken
Embeddings
otelSpan _otelService
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr GenAiProviderName
GenAiAttr embeddingTypeid
inputslength
_logService
_authServicehasCopilotTokenSource
type embeddingType values
copilotToken _authService
copilotTokenisNoAuthUser
embeddings inputs options cancellationToken
embeddings type embeddingType values
token _authService silent accessToken
token
type embeddingType values
embeddingsOut Embedding
i
type resolvedType
value embeddingembedding
type embeddingType values embeddingsOut
err
otelSpanSpanStatusCode err errmessage err
otelSpan err errconstructorname
otelSpanerr
err
otelSpan
inputs
options ComputeEmbeddingsOptions
cancellationToken CancellationToken
typeInfo EmbeddingTypetext3small_512
typeInfo
endpoint _endpointProvider
batchSize endpointmaxBatchSize
maxTokens endpointmodelMaxPromptTokens
typeInfo endpoint inputs cancellationToken maxTokens batchSize
type EmbeddingTypeInfo
endpoint IEmbeddingsEndpoint
inputs
cancellationToken CancellationToken
maxTokens
batchSize
parallelism
Embeddings
input inputs
inputTokenLength endpointinput
inputTokenLength maxTokens
embeddings EmbeddingVector
promises CAPIEmbeddingResults
limiter parallelism
i i inputslength i batchSize
currentBatch inputsi i batchSize
promiseslimiter
cancellationTokenisCancellationRequested
r type endpoint currentBatch cancellationToken
rtype
rreason
r
embeddings promisesresponse responseembeddings
e
limiter
cancellationTokenisCancellationRequested
embeddingslength
type EmbeddingTypetext3small_512 values embeddingsvalue Embedding type EmbeddingTypetext3small_512 value
type EmbeddingTypeInfo
endpoint IEmbeddingsEndpoint
requestId
inputs
cancellationToken CancellationToken
startTime Date
rawRequest type endpoint requestId inputs cancellationToken
rawRequesttype
_telemetryService
type rawRequesttype
reason rawRequestreason
rawRequest
tokenizer endpoint
tokenCounts inputsinput tokenizerinput
inputTokenCount tokenCountsacc count acc count
_telemetryService
batchSize inputslength
inputTokenCount
timeToComplete Date startTime
rawRequest
type EmbeddingTypeInfo
endpoint IEmbeddingsEndpoint
requestId
inputs
cancellationToken CancellationToken
CAPIEmbeddingResults CAPIEmbeddingError
token _authService
body input inputs model typemodel dimensions typedimensions
endpointinterceptBodybody
response _instantiationServicepostRequest
endpointOrUrl endpoint
secretKey tokentoken
intent
requestId
body
cancelToken cancellationToken
jsonResponse responsestatus response response
object
index
embedding
responsestatus jsonResponsedata
type embeddings jsonResponsedatad EmbeddingResponse dembedding
type reason jsonResponseerror
e
errorMessage e Errormessage
errorMessage
errorMessage
type reason errorMessage