@langchain/openai
Version:
OpenAI integrations for LangChain.js
30 lines (29 loc) • 1.54 kB
TypeScript
import { AzureOpenAIChatInput, OpenAICoreRequestOptions } from "../../types.js";
import { ChatOpenAICompletions, ChatOpenAICompletionsCallOptions } from "../../chat_models/completions.js";
import { AzureChatOpenAIFields } from "./common.js";
import { LangSmithParams } from "@langchain/core/language_models/chat_models";
import { Serialized } from "@langchain/core/load/serializable";
//#region src/azure/chat_models/completions.d.ts
declare class AzureChatOpenAICompletions<CallOptions extends ChatOpenAICompletionsCallOptions = ChatOpenAICompletionsCallOptions> extends ChatOpenAICompletions<CallOptions> implements Partial<AzureOpenAIChatInput> {
azureOpenAIApiVersion?: string;
azureOpenAIApiKey?: string;
azureADTokenProvider?: () => Promise<string>;
azureOpenAIApiInstanceName?: string;
azureOpenAIApiDeploymentName?: string;
azureOpenAIBasePath?: string;
azureOpenAIEndpoint?: string;
_llmType(): string;
get lc_aliases(): Record<string, string>;
get lc_secrets(): {
[key: string]: string;
} | undefined;
get lc_serializable_keys(): string[];
getLsParams(options: this["ParsedCallOptions"]): LangSmithParams;
constructor(deploymentName: string, fields?: Omit<AzureChatOpenAIFields, "deploymentName" | "azureOpenAIApiDeploymentName" | "model">);
constructor(fields?: AzureChatOpenAIFields);
_getClientOptions(options: OpenAICoreRequestOptions | undefined): OpenAICoreRequestOptions;
toJSON(): Serialized;
}
//#endregion
export { AzureChatOpenAICompletions };
//# sourceMappingURL=completions.d.ts.map