You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-18 09:51:28 +02:00
79 lines
2.3 KiB
Plaintext
Vendored
79 lines
2.3 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 9
|
|
|
|
description: Get image description structure and other functions to work with OpenAI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, OpenAI]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
import Admonition from '@theme/Admonition';
|
|
|
|
# Get image description structure
|
|
Get image description structure for generation
|
|
|
|
|
|
|
|
<Tabs>
|
|
<TabItem value="params" label="Parameters" default>
|
|
|
|
`Function GetImageDescriptionStructure(Val Prompt, Val Count, Val Background = "", Val Size = "", Val AdditionalParameters = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Prompt | --prompt | String | ✔ | Text description of the image for generation |
|
|
| Count | --amount | Number | ✔ | Number of images to generate |
|
|
| Background | --bg | String | ✖ | Generation background option: transparent, opaque, auto |
|
|
| Size | --size | String | ✖ | Size option for generated images |
|
|
| AdditionalParameters | --options | Structure Of KeyAndValue | ✖ | Additional request parameters, if necessary |
|
|
|
|
|
|
<div className="return-value-note">
|
|
<div className="return-value-note__title">Returns</div>
|
|
<div className="return-value-note__value">
|
|
Structure - Fields structure
|
|
</div>
|
|
</div>
|
|
|
|
</TabItem>
|
|
<TabItem value="extended" label={<span>Advanced call{' '}<a href="/docs/Start/Advanced-call" target="_blank" rel="noreferrer" title="About advanced call" onClick={(e) => e.stopPropagation()}>?</a></span>}>
|
|
|
|
*This method has no additional advanced call parameters.*
|
|
|
|
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
:::tip
|
|
The set of fields and their interpretation may vary depending on the model used
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint openai GetImageDescriptionStructure \
|
|
--prompt "Yellow alpaca" \
|
|
--amount 1 \
|
|
--size "1024x1024"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint openai GetImageDescriptionStructure ^
|
|
--prompt "Yellow alpaca" ^
|
|
--amount 1 ^
|
|
--size "1024x1024"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
|