You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -12,7 +12,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
`Function GetImageDescriptionStructure(Val Prompt, Val Count, Val Background = "auto", Val Size = "auto", Val AdditionalParameters = "") Export`
|
||||
`Function GetImageDescriptionStructure(Val Prompt, Val Count, Val Background = "", Val Size = "", Val AdditionalParameters = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
|
||||
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "https://api.athenaeum.digital:1122/";
|
||||
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
|
||||
Image = "file-10";
|
||||
Image = "file-3";
|
||||
|
||||
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
||||
```
|
||||
|
||||
@@ -35,11 +35,11 @@ Method at API documentation: [Create image](https://platform.openai.com/docs/api
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "https://api.vsegpt.ru/";
|
||||
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
|
||||
URL = "https://bothub.chat/api/v2/openai/";
|
||||
Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjUzYTUwNWFiLTdhYmEtNDkyNy05YmQ0LTZlNDFlZGEyZGRmYyIsImlzRGV2Z...";
|
||||
|
||||
Model = "img2img-google/flash-edit";
|
||||
Description = OPI_OpenAI.GetImageDescriptionStructure("Yellow alpaca", 2);
|
||||
Model = "dall-e-3";
|
||||
Description = OPI_OpenAI.GetImageDescriptionStructure("Yellow alpaca", 1, , "1024x1024");
|
||||
Result = OPI_OpenAI.GetImages(URL, Token, Model, Description);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user