Skip to main content

Get model settings structure

Gets the settings structure for creating a new model

Function GetModelSettingsStructure(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.GetModelSettingsStructure();
Result
{
"from": "<the name of the existing model from which the new model will be created>",
"files": "<list of file names or SHA256 blobs from which the model will be created>",
"adapters": "<list of file names or SHA256 blobs for LORA adapters>",
"template": "<new model prompt template>",
"license": "<a string or list of strings of license text for the model>",
"system": "<system prompt for the model>",
"parameters": "<model parameter list>",
"messages": "<list of context message objects>",
"quantize": "<quantize non-quantized (e.g. float16) model>"
}