messages
messages: {
content: string;
role: "user" | "assistant";
[k: string]: unknown;
}[]
project_id
project_id: number
streaming
streaming: boolean = false
Optional
apiKey
apiKey?: string
Optional
frequency_penalty
frequency_penalty?: number
Optional
logit_bias
logit_bias?: {
[k: string]: unknown;
}
Optional
max_tokens
max_tokens?: number
Optional
model
model?: string
Optional
presence_penalty
presence_penalty?: number
Optional
response_format
response_format?: {
[k: string]: unknown;
}
Optional
seed
seed?: number
Optional
session_id
session_id?: string
Optional
stop
stop?: string
Optional
system_prompt
system_prompt?: string
Optional
temperature
temperature?: number
Optional
tools
tools?: {
[k: string]: unknown;
}[]
Optional
top_p
top_p?: number
Optional
user
user?: string
Integration with a chat model.