OptionalapiOptional API key for authentication.
OptionaldefaultsDefault settings.
OptionalonCallback triggered when inference ends.
OptionalonCallback triggered on errors.
OptionalonCallback triggered when inference starts.
OptionalonCallback 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