Skip to content

Commit 5af4afc

Browse files
committed
Update methods
1 parent 3594058 commit 5af4afc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/extension/prompt/vscode-node/endpointProviderImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ConfigKey, IConfigurationService } from '../../../platform/configuratio
99
import { AutoChatEndpoint } from '../../../platform/endpoint/common/autoChatEndpoint';
1010
import { IAutomodeService } from '../../../platform/endpoint/common/automodeService';
1111
import { ICAPIClientService } from '../../../platform/endpoint/common/capiClient';
12-
import { ChatEndpointFamily, IChatModelInformation, ICompletionModelInformation, IEmbeddingModelInformation, IEndpointProvider } from '../../../platform/endpoint/common/endpointProvider';
12+
import { ChatEndpointFamily, EmbeddingsEndpointFamily, IChatModelInformation, ICompletionModelInformation, IEmbeddingModelInformation, IEndpointProvider } from '../../../platform/endpoint/common/endpointProvider';
1313
import { CopilotChatEndpoint } from '../../../platform/endpoint/node/copilotChatEndpoint';
1414
import { EmbeddingEndpoint } from '../../../platform/endpoint/node/embeddingsEndpoint';
1515
import { IModelMetadataFetcher, ModelMetadataFetcher } from '../../../platform/endpoint/node/modelMetadataFetcher';
@@ -146,7 +146,7 @@ export class ProductionEndpointProvider implements IEndpointProvider {
146146
return endpoint;
147147
}
148148

149-
async getEmbeddingsEndpoint(): Promise<IEmbeddingsEndpoint> {
149+
async getEmbeddingsEndpoint(family?: EmbeddingsEndpointFamily): Promise<IEmbeddingsEndpoint> {
150150
this._logService.trace(`Resolving embedding model`);
151151
const modelMetadata = await this._modelFetcher.getEmbeddingsModel('text-embedding-3-small');
152152
const model = await this.getOrCreateEmbeddingEndpointInstance(modelMetadata);

src/platform/endpoint/test/node/testEndpointProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { IRequestLogger } from '../../../requestLogger/node/requestLogger';
2323
import { IExperimentationService } from '../../../telemetry/common/nullExperimentationService';
2424
import { ITelemetryService } from '../../../telemetry/common/telemetry';
2525
import { ICAPIClientService } from '../../common/capiClient';
26-
import { ChatEndpointFamily, IChatModelInformation, ICompletionModelInformation, IEmbeddingModelInformation, IEndpointProvider } from '../../common/endpointProvider';
26+
import { ChatEndpointFamily, EmbeddingsEndpointFamily, IChatModelInformation, ICompletionModelInformation, IEmbeddingModelInformation, IEndpointProvider } from '../../common/endpointProvider';
2727
import { EmbeddingEndpoint } from '../../node/embeddingsEndpoint';
2828
import { ModelMetadataFetcher } from '../../node/modelMetadataFetcher';
2929
import { AzureTestEndpoint } from './azureEndpoint';
@@ -204,7 +204,7 @@ export class TestEndpointProvider implements IEndpointProvider {
204204
return await this.getChatEndpointInfo(this.gpt4oMiniModelToRunAgainst ?? CHAT_MODEL.GPT4OMINI, await this._modelLabChatModelMetadata, await this._prodChatModelMetadata);
205205
}
206206
}
207-
async getEmbeddingsEndpoint(): Promise<IEmbeddingsEndpoint> {
207+
async getEmbeddingsEndpoint(family?: EmbeddingsEndpointFamily): Promise<IEmbeddingsEndpoint> {
208208
const id = LEGACY_EMBEDDING_MODEL_ID.TEXT3SMALL;
209209
const modelInformation: IEmbeddingModelInformation = {
210210
id: id,

0 commit comments

Comments
 (0)