Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

@reactor/ai — chatcompletionrequest

@reactor/ai


@reactor/ai / ChatCompletionRequest

Defined in: index.ts:41

optional frequency_penalty?: number

Defined in: index.ts:53


optional max_tokens?: number

Defined in: index.ts:46


messages: Message[]

Defined in: index.ts:43


model: string

Defined in: index.ts:42


optional presence_penalty?: number

Defined in: index.ts:52


optional response_format?: object

Defined in: index.ts:50

type: "text" | "json_object"


optional stop?: string | string[]

Defined in: index.ts:51


optional stream?: boolean

Defined in: index.ts:47


optional temperature?: number

Defined in: index.ts:44


optional tool_choice?: "auto" | "none" | { function: { name: string; }; type: "function"; }

Defined in: index.ts:49


optional tools?: Tool[]

Defined in: index.ts:48


optional top_p?: number

Defined in: index.ts:45


optional user?: string

Defined in: index.ts:54