@nickyzj2023/utils
    Preparing search index...

    Type Alias Response

    请求非流式 /chat/completions 的响应结果

    type Response = {
        choices: {
            finish_reason:
                | "stop"
                | "length"
                | "tool_calls"
                | "content_filter"
                | null;
            index: number;
            message: Message;
        }[];
        created: number;
        id: string;
        model: string;
        object: "chat.completion";
        system_fingerprint?: string;
        usage: Usage;
    }
    Index

    Properties

    choices: {
        finish_reason:
            | "stop"
            | "length"
            | "tool_calls"
            | "content_filter"
            | null;
        index: number;
        message: Message;
    }[]
    created: number
    id: string
    model: string
    object: "chat.completion"
    system_fingerprint?: string
    usage: Usage