1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Ollama/Requests-processing/Get-context-parameter-structure.mdx
Vitaly the Alpaca (bot) 067723ce5e Main build (Jenkins)
2025-05-01 20:09:27 +03:00

58 lines
1.4 KiB
Plaintext
Vendored

---
sidebar_position: 7
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# 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
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_Ollama.GetContextParameterStructure();
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ollama GetContextParameterStructure \
--empty true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ollama GetContextParameterStructure ^
--empty true
```
</TabItem>
</Tabs>
```json title="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)>"
}
```