Validate additional options or parameters provided to the API call
Source:R/model_options.R
validate_options.Rd
Validate additional options or parameters provided to the API call
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