generative-ts

Interface MistralAiOptions

interface MistralAiOptions {
    $prompt: string;
    examplePairs?: {
        assistant: string;
        user: string;
    }[];
    max_tokens?: number;
    messages?: {
        content: string;
        role: "user" | "assistant" | "system";
    }[];
    modelId: string;
    random_seed?: number;
    safe_prompt?: boolean;
    stream?: boolean;
    system?: string;
    temperature?: number;
    top_p?: number;
}

Hierarchy

  • FewShotRequestOptions
  • ModelRequestOptions
    • MistralAiOptions

Properties

$prompt: string
examplePairs?: {
    assistant: string;
    user: string;
}[]

Type declaration

  • assistant: string
  • user: string
max_tokens?: number
messages?: {
    content: string;
    role: "user" | "assistant" | "system";
}[]

Type declaration

  • content: string
  • role: "user" | "assistant" | "system"
modelId: string
random_seed?: number
safe_prompt?: boolean
stream?: boolean
system?: string
temperature?: number
top_p?: number