jorel
Version:
A unified wrapper for working with LLMs from multiple providers, including streams, images, documents & automatic tool use.
9 lines (8 loc) • 589 B
TypeScript
import { Mistral } from "@mistralai/mistralai";
import { JsonSpecification, LlmToolChoice } from "../llm-core-provider";
type MistralChatRequest = Parameters<InstanceType<typeof Mistral>["chat"]["complete"]>[0];
type ResponseFormat = NonNullable<MistralChatRequest["responseFormat"]>;
type ToolChoice = NonNullable<MistralChatRequest["toolChoice"]>;
export declare const jsonResponseToMistral: (format?: boolean | JsonSpecification, schemaDescription?: string) => ResponseFormat;
export declare const toolChoiceToMistral: (toolChoice?: LlmToolChoice) => ToolChoice | undefined;
export {};