Skip to contents

Validate additional options or parameters provided to the API call

Usage

validate_options(...)

Arguments

...

Additional options or parameters provided to the API call

Value

TRUE if all additional options are valid, FALSE otherwise

Examples

validate_options(mirostat = 1, mirostat_eta = 0.2, num_ctx = 1024)
#> [1] TRUE
validate_options(mirostat = 1, mirostat_eta = 0.2, invalid_opt = 1024)
#> Valid options: mirostat, mirostat_eta
#> Invalid options: invalid_opt
#> See available options with check_options() or model_options.
#> See also https://github.com/ollama/ollama/blob/main/docs/modelfile.md#parameter
#> [1] FALSE