@sap-ai-sdk/langchain
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
24 lines • 1.2 kB
TypeScript
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
import type { BaseMessage } from '@langchain/core/messages';
import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
import type { ChatResult } from '@langchain/core/outputs';
import type { AzureOpenAiChatCallOptions, AzureOpenAiChatModelParams } from './types.js';
import type { HttpDestinationOrFetchOptions } from '@sap-cloud-sdk/connectivity';
/**
* LangChain chat client for Azure OpenAI consumption on SAP BTP.
*/
export declare class AzureOpenAiChatClient extends BaseChatModel<AzureOpenAiChatCallOptions> {
temperature?: number | null;
top_p?: number | null;
logit_bias?: Record<string, any> | null | undefined;
user?: string;
presence_penalty?: number;
frequency_penalty?: number;
stop?: string | string[];
max_tokens?: number;
private openAiChatClient;
constructor(fields: AzureOpenAiChatModelParams, destination?: HttpDestinationOrFetchOptions);
_llmType(): string;
_generate(messages: BaseMessage[], options: typeof this.ParsedCallOptions, runManager?: CallbackManagerForLLMRun): Promise<ChatResult>;
}
//# sourceMappingURL=chat.d.ts.map