agsamantha/node_modules/@langchain/openai/dist/azure/embeddings.d.ts

15 lines
771 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { type ClientOptions, OpenAI as OpenAIClient } from "openai";
import { OpenAIEmbeddings, OpenAIEmbeddingsParams } from "../embeddings.js";
import { AzureOpenAIInput, LegacyOpenAIInput } from "../types.js";
export declare class AzureOpenAIEmbeddings extends OpenAIEmbeddings {
constructor(fields?: Partial<OpenAIEmbeddingsParams> & Partial<AzureOpenAIInput> & {
verbose?: boolean;
/** The OpenAI API key to use. */
apiKey?: string;
configuration?: ClientOptions;
deploymentName?: string;
openAIApiVersion?: string;
}, configuration?: ClientOptions & LegacyOpenAIInput);
protected embeddingWithRetry(request: OpenAIClient.EmbeddingCreateParams): Promise<OpenAIClient.Embeddings.CreateEmbeddingResponse>;
}