Optional
apiOptional API key for authentication.
Optional
defaultsDefault settings.
Optional
onCallback triggered when inference ends.
Optional
onCallback triggered on errors.
Optional
onCallback triggered when inference starts.
Optional
onCallback when a new token is received.
Type of provider ("llamacpp", "koboldcpp", "ollama", "browser").
The URL endpoint for the LM service.
Parameters for initializing a Language Model.
LmParams
Example