UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

16 lines 652 B
import OpenAI from "openai"; import { ChatLlm, Tool } from "./ChatLlm"; /** Configuration for the {@link makeOpenAiChatLlm} function. */ export interface MakeOpenAiChatLlmParams { deployment: string; openAiClient: OpenAI; openAiLmmConfigOptions?: Omit<OpenAI.ChatCompletionCreateParams, "model" | "messages">; tools?: Tool[]; } /** Construct the {@link ChatLlm} service using the [OpenAI client](https://www.npmjs.com/package/openai). */ export declare function makeOpenAiChatLlm({ deployment, openAiClient, openAiLmmConfigOptions, tools, }: MakeOpenAiChatLlmParams): Required<ChatLlm>; //# sourceMappingURL=OpenAiChatLlm.d.ts.map