SongGuess
    Preparing search index...

    Type Alias ChatCompletionsCommonOptions

    Shared optional properties used by both Prompt and Messages input branches.

    type ChatCompletionsCommonOptions = {
        audio?: AudioParams;
        chat_template_kwargs?: ChatTemplateKwargs;
        frequency_penalty?: number | null;
        function_call?: "none" | "auto" | { name: string };
        functions?: FunctionDefinition[];
        logit_bias?: Record<string, unknown> | null;
        logprobs?: boolean | null;
        max_completion_tokens?: number | null;
        max_tokens?: number | null;
        metadata?: Record<string, unknown> | null;
        modalities?: ("text" | "audio")[] | null;
        model?: string;
        n?: number | null;
        parallel_tool_calls?: boolean;
        prediction?: PredictionContent;
        presence_penalty?: number | null;
        reasoning_effort?: "low" | "medium" | "high" | null;
        response_format?: ResponseFormat;
        seed?: number | null;
        service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null;
        stop?: string | string[] | null;
        store?: boolean | null;
        stream?: boolean | null;
        stream_options?: ChatCompletionsStreamOptions;
        temperature?: number | null;
        tool_choice?: ChatCompletionToolChoiceOption;
        tools?: ChatCompletionTool[];
        top_logprobs?: number | null;
        top_p?: number | null;
        user?: string;
        web_search_options?: WebSearchOptions;
    }
    Index

    Properties

    audio?: AudioParams
    chat_template_kwargs?: ChatTemplateKwargs
    frequency_penalty?: number | null
    function_call?: "none" | "auto" | { name: string }
    functions?: FunctionDefinition[]
    logit_bias?: Record<string, unknown> | null
    logprobs?: boolean | null
    max_completion_tokens?: number | null
    max_tokens?: number | null
    metadata?: Record<string, unknown> | null
    modalities?: ("text" | "audio")[] | null
    model?: string
    n?: number | null
    parallel_tool_calls?: boolean
    prediction?: PredictionContent
    presence_penalty?: number | null
    reasoning_effort?: "low" | "medium" | "high" | null
    response_format?: ResponseFormat
    seed?: number | null
    service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null
    stop?: string | string[] | null
    store?: boolean | null
    stream?: boolean | null
    temperature?: number | null
    top_logprobs?: number | null
    top_p?: number | null
    user?: string
    web_search_options?: WebSearchOptions