Loading...
Skip to main content

Interface: ModelProps

core/completion.ModelProps

Represents properties passed to a given Large Language Model.

Properties

forcedFunction

Optional forcedFunction: string

If specified, the model will be forced to use this function.

Defined in

ai-jsx/src/core/completion.tsx:51


functionDefinitions

Optional functionDefinitions: Record<string, FunctionDefinition>

Any function definitions (tools) that the model can choose to invoke.

Defined in

ai-jsx/src/core/completion.tsx:46


maxInputTokens

Optional maxInputTokens: number

Maximum number of input tokens to allow.

Defined in

ai-jsx/src/core/completion.tsx:33


maxTokens

Optional maxTokens: number

The maximum number of tokens to generate.

Defined in

ai-jsx/src/core/completion.tsx:29


reservedTokens

Optional reservedTokens: number

The number of tokens to reserve for the generation.

Defined in

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


stop

Optional stop: string[]

A list of stop tokens.

Defined in

ai-jsx/src/core/completion.tsx:35


temperature

Optional temperature: number

The temperature to use for LLM calls.

Defined in

ai-jsx/src/core/completion.tsx:27


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

ai-jsx/src/core/completion.tsx:41