options = aioptions()
options = aioptions(name, value, ...)
aioptions creates a scalar struct used by aiask.
The default provider is ollama, the default model is llama3, and the default endpoint is http://127.0.0.1:11434/api/generate.
Supported options are Provider, Model, Endpoint, TokenEnvVar, Timeout, SystemPrompt, Think, NumPredict, and Temperature.
For Ollama, Think, NumPredict, and Temperature are sent in the request payload. Use them to keep local model responses bounded.
opts = aioptions('Provider', 'ollama', ...
'Model', 'llama3.2', ...
'Endpoint', 'http://127.0.0.1:11434/api/generate', ...
'Timeout', 180, ...
'Think', false, ...
'NumPredict', 200, ...
'Temperature', 0);
| Version | Description |
|---|---|
| 2.0.0 | initial version |