Get context parameter structure
Gets the structure of additional parameters to process the request in context
Function GetContextParameterStructure(Val Clear = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Structure Of KeyAndValue - Fields structure
1C:Enterprise/OneScript code example
Result = OPI_Ollama.GetContextParameterStructure();
- Bash
- CMD/Bat
oint ollama GetContextParameterStructure \
--empty true
oint ollama GetContextParameterStructure ^
--empty true
Result
{
"format": "<the format in which the response is returned: json or JSON schema>",
"options": "<additional model parameters listed in the Modelfile documentation>",
"keep_alive": "<how long the model will remain loaded in memory after a request>",
"tools": "<list of tools in JSON format (for models that support this)>"
}