2025-04-08 20:31:27 +03:00
|
|
|
---
|
2025-04-12 22:59:24 +03:00
|
|
|
sidebar_position: 5
|
2025-04-08 20:31:27 +03:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
|
|
# Get request parameter structure
|
|
|
|
|
Gets the structure of additional parameters for request processing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function GetRequestParameterStructure(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-09 21:13:58 +03:00
|
|
|
Result = OPI_Ollama.GetRequestParameterStructure();
|
2025-04-08 20:31:27 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-01 12:55:47 +03:00
|
|
|
```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>",
|
|
|
|
|
"system": "<system message (overrides what is defined in Modelfile)>",
|
|
|
|
|
"template": "<prompt template (overrides what is defined in Modelfile)>",
|
|
|
|
|
"raw": "<true > disable formatting prompt>",
|
|
|
|
|
"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)>"
|
|
|
|
|
}
|
|
|
|
|
```
|