1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Ollama/Models-management/Get-model-settings-structure.mdx
Vitaly the Alpaca (bot) cf9ba6cec5 Main build (Jenkins)
2025-05-01 12:55:47 +03:00

47 lines
1.2 KiB
Plaintext
Vendored

---
sidebar_position: 11
---
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"
Result = OPI_Ollama.GetModelSettingsStructure();
```
```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>"
}
```