Options for the useCompletion hook.
API
interface UseCompletionOptions<Input> {debounceTime?: number;debugName?: string;input: Input | null | undefined;model: KnownModelIds ;retries?: number;system: string;tools?: Chat.AnyTool[];}UseCompletionOptions
@typeInputdebounceTime
numberThe debounce time between sends to the endpoint. default: 150
debugName
stringThe name of the hook, useful for debugging.
input
Input | null | undefinedThe input string to predict from.
model
KnownModelIdsThe LLM model to use for the chat.
retries
numberNumber of retries if an error is received. default: 0
system
stringThe system message to use for the completion.
tools
Chat.AnyTool[]The tools to make available use for the completion. default: []