UNPKG

jorel

Version:

The easiest way to use LLMs, including streams, images, documents, tools and various agent scenarios.

5 lines (4 loc) 359 B
import { LlmMessage } from "../../providers"; import { ChatCompletionRequest } from "@mistralai/mistralai/models/components/chatcompletionrequest"; /** Convert unified LLM messages to Mistral messages */ export declare const convertLlmMessagesToMistralMessages: (messages: LlmMessage[], detail?: "low" | "high") => Promise<ChatCompletionRequest["messages"]>;