Skip to main content

Interface: ModelProps

core/completion.ModelProps

Represents properties passed to a given Large Language Model.

Properties

maxTokens

Optional maxTokens: number

The maximum number of tokens to generate.

Defined in

packages/ai-jsx/src/core/completion.tsx:23


stop

Optional stop: string[]

A list of stop tokens.

Defined in

packages/ai-jsx/src/core/completion.tsx:25


temperature

Optional temperature: number

The temperature to use for LLM calls.

Defined in

packages/ai-jsx/src/core/completion.tsx:21


topP

Optional topP: number

An alternative sampling technique to temperature.

See

https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p

Defined in

packages/ai-jsx/src/core/completion.tsx:31