Command Palette
Search for a command to run
Command Palette
Search for a command to run

useCompletion

✓ Relevant

useCompletion hook: streams AI text completions with state management (completion, input, isLoading, error), input control (handleInputChange, handleSubmit, setInput), cancellation (stop), throttling (experimental_throttle), callbacks (onResponse, onFinish, onError), and request options (headers, body, credentials).