ChatRequestBody
Defined in: react-nextjs/src/server.ts:153
Chat request body structure.
Indexable
Section titled “Indexable”[key: string]: unknown
Additional options
Properties
Section titled “Properties”maxTokens?
Section titled “maxTokens?”
optionalmaxTokens:number
Defined in: react-nextjs/src/server.ts:164
Max tokens
messages
Section titled “messages”messages:
object[]
Defined in: react-nextjs/src/server.ts:155
Chat messages
content
Section titled “content”content:
string
role:
"user"|"assistant"|"system"
model?
Section titled “model?”
optionalmodel:string
Defined in: react-nextjs/src/server.ts:160
Model to use
stream?
Section titled “stream?”
optionalstream:boolean
Defined in: react-nextjs/src/server.ts:166
Stream response
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: react-nextjs/src/server.ts:162
Temperature