2025-04-12 00:07:36 +03:00
---
2025-04-14 10:07:56 +03:00
sidebar_position: 11
2025-05-05 11:15:20 +03:00
description: Get model settings structure and other functions to work with Ollama in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Ollama]
2025-04-12 00:07:36 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get model settings structure
Gets the settings structure for creating a new model
`Function GetModelSettingsStructure(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
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-04-12 22:59:24 +03:00
Result = OPI_Ollama.GetModelSettingsStructure();
2025-04-12 00:07:36 +03:00
```
2025-05-21 10:35:46 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ollama GetModelSettingsStructure \
--empty true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ollama GetModelSettingsStructure ^
--empty true
```
</TabItem>
</Tabs>
2025-04-12 00:07:36 +03:00
2025-05-01 12:55:47 +03:00
```json title="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>"
}
```