import { ChatOpenAICallOptions, ChatOpenAICompletions, OpenAIChatInput, OpenAIClient, OpenAICoreRequestOptions } from "@langchain/openai"; import { BaseChatModelParams, LangSmithParams } from "@langchain/core/language_models/chat_models"; //#region src/chat_models.d.ts type TogetherAIUnsupportedArgs = "frequencyPenalty" | "presencePenalty" | "logitBias" | "functions"; type TogetherAIUnsupportedCallOptions = "functions" | "function_call"; interface ChatTogetherAICallOptions extends Omit { response_format?: { type: "json_object"; schema: Record; }; } interface ChatTogetherAIInput extends Omit, BaseChatModelParams { /** * The Together AI API key to use for requests. * Alias for `apiKey`. * @default process.env.TOGETHER_AI_API_KEY */ togetherAIApiKey?: string; /** * The Together AI API key to use for requests. * @default process.env.TOGETHER_AI_API_KEY */ apiKey?: string; } /** * Together AI chat model integration. * * The Together AI chat API is OpenAI-compatible with a few unsupported request * fields. Full API reference: * https://docs.together.ai/reference/chat-completions * * Setup: * Install `@langchain/together-ai` and set an environment variable named * `TOGETHER_AI_API_KEY`. * * ```bash * npm install @langchain/together-ai * export TOGETHER_AI_API_KEY="your-api-key" * ``` * * ## [Constructor args](https://api.js.langchain.com/classes/_langchain_together_ai.ChatTogetherAI.html#constructor) * * ## [Runtime args](https://api.js.langchain.com/interfaces/_langchain_together_ai.ChatTogetherAICallOptions.html) */ declare class ChatTogetherAI extends ChatOpenAICompletions { static lc_name(): string; lc_serializable: boolean; lc_namespace: string[]; _llmType(): string; get lc_secrets(): { [key: string]: string; } | undefined; get lc_aliases(): { [key: string]: string; } | undefined; constructor(fields?: Partial); getLsParams(options: this["ParsedCallOptions"]): LangSmithParams; toJSON(): import("@langchain/core/load/serializable").Serialized; completionWithRetry(request: OpenAIClient.Chat.ChatCompletionCreateParamsStreaming, options?: OpenAICoreRequestOptions): Promise>; completionWithRetry(request: OpenAIClient.Chat.ChatCompletionCreateParamsNonStreaming, options?: OpenAICoreRequestOptions): Promise; protected get streamEventProvider(): string; } //#endregion export { ChatTogetherAI, ChatTogetherAICallOptions, ChatTogetherAIInput }; //# sourceMappingURL=chat_models.d.ts.map