Properties
Optional examplePairs
examplePairs?: { 
    assistant: string; 
    user: string; 
}[]
Type declaration
- assistant: string
- user: string
Optional frequency_penalty
frequency_penalty?: number
Optional function_call
function_call?: string
Optional functions
functions?: { 
    description?: string; 
    name: string; 
    parameters?: object; 
}[]
Type declaration
- Optionaldescription?: string
- name: string
- Optionalparameters?: object
Optional logit_bias
logit_bias?: Record<string, number>
Optional logprobs
logprobs?: boolean
Optional max_tokens
max_tokens?: number
Optional messages
messages?: ChatCompletionRequestMessage[]
Optional n
n?: number
Optional presence_penalty
presence_penalty?: number
Optional response_format
response_format?: { 
    type: "text" | "json_object"; 
}
Type declaration
- type: "text" | "json_object"
Optional seed
seed?: number
Optional stop
stop?: string | string[]
Optional stream
stream?: boolean
Optional stream_options
stream_options?: { 
    include_usage: boolean; 
}
Optional system
system?: string
Optional temperature
temperature?: number
Optional tool_choice
tool_choice?: "required" | "none" | "auto" | { 
    function: { 
        name: string; 
    }; 
    type: "function"; 
}
Type declaration
- function: { 
 name: string;
 }
- type: "function"
Optional tools
tools?: { 
    function: { 
        description?: string; 
        name: string; 
        parameters?: object; 
    }; 
    type: "function"; 
}[]
Type declaration
- function: { 
 description?: string;
 name: string;
 parameters?: object;
 }
- Optionaldescription?: string
- name: string
- Optionalparameters?: object
 
- type: "function"
Optional top_logprobs
top_logprobs?: number
Optional top_p
top_p?: number
Optional user
user?: string