@reactor/ai — chatcompletionrequest
@reactor/ai / ChatCompletionRequest
Interface: ChatCompletionRequest
Section titled “Interface: ChatCompletionRequest”Defined in: index.ts:41
Properties
Section titled “Properties”frequency_penalty?
Section titled “frequency_penalty?”
optionalfrequency_penalty?:number
Defined in: index.ts:53
max_tokens?
Section titled “max_tokens?”
optionalmax_tokens?:number
Defined in: index.ts:46
messages
Section titled “messages”messages:
Message[]
Defined in: index.ts:43
model:
string
Defined in: index.ts:42
presence_penalty?
Section titled “presence_penalty?”
optionalpresence_penalty?:number
Defined in: index.ts:52
response_format?
Section titled “response_format?”
optionalresponse_format?:object
Defined in: index.ts:50
type:
"text"|"json_object"
optionalstop?:string|string[]
Defined in: index.ts:51
stream?
Section titled “stream?”
optionalstream?:boolean
Defined in: index.ts:47
temperature?
Section titled “temperature?”
optionaltemperature?:number
Defined in: index.ts:44
tool_choice?
Section titled “tool_choice?”
optionaltool_choice?:"auto"|"none"| {function: {name:string; };type:"function"; }
Defined in: index.ts:49
tools?
Section titled “tools?”
optionaltools?:Tool[]
Defined in: index.ts:48
top_p?
Section titled “top_p?”
optionaltop_p?:number
Defined in: index.ts:45
optionaluser?:string
Defined in: index.ts:54