hashbrown

UseCompletionOptions

Options for the useCompletion hook.

API

UseCompletionOptions
@typeInput
debounceTime
number

The debounce time between sends to the endpoint. default: 150

debugName
string

The name of the hook, useful for debugging.

input
Input | null | undefined

The input string to predict from.

model
KnownModelIds

The LLM model to use for the chat.

retries
number

Number of retries if an error is received. default: 0

system
string

The system message to use for the completion.

tools
Chat.AnyTool[]

The tools to make available use for the completion. default: []