Skip to main content

Get request parameter structure

Gets the structure of additional parameters for request processing

Function GetRequestParameterStructure(Val Clear = False) Export

ParameterCLI optionTypeRequiredDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values
Returns

Structure Of KeyAndValue - Fields structure

1C:Enterprise/OneScript code example
Result = OPI_Ollama.GetRequestParameterStructure();
oint ollama GetRequestParameterStructure \
--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>",
"system": "<system message (overrides what is defined in Modelfile)>",
"template": "<prompt template (overrides what is defined in Modelfile)>",
"raw": "<true > disable prompt formatting>",
"keep_alive": "<how long the model will remain loaded in memory after a request>",
"suffix": "<text after the model's response>",
"images": "<list of images in Base64 format (for multimodal models like llava)>"
}