mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
feat(image-gen): added gpt-image-1 and safe storage for base64 data (#396)
* added gpt-image-1 and safe storage for base64 data * acknowledged PR comments * updated README * update CONTRIBUTING.md
This commit is contained in:
@@ -45,25 +45,26 @@ In Sim Studio, the DALL-E integration enables your agents to generate images pro
|
||||
|
||||
## Usage Instructions
|
||||
|
||||
Create high-quality images using DALL-E. Configure resolution, quality, style, and other parameters to get exactly the image you need.
|
||||
Create high-quality images using OpenAI
|
||||
|
||||
## Tools
|
||||
|
||||
### `openai_dalle`
|
||||
### `openai_image`
|
||||
|
||||
Generate images using OpenAI
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------------------------------------------------------------------- |
|
||||
| `prompt` | string | Yes | A text description of the desired image\(s\) |
|
||||
| `model` | string | Yes | The DALL-E model to use \(dall-e-2 or dall-e-3\) |
|
||||
| `size` | string | No | The size of the generated images \(1024x1024, 1024x1792, or 1792x1024\) |
|
||||
| `quality` | string | No | The quality of the image \(standard or hd\) |
|
||||
| `style` | string | No | The style of the image \(vivid or natural\) |
|
||||
| `n` | number | No | The number of images to generate \(1-10\) |
|
||||
| `apiKey` | string | Yes | Your OpenAI API key |
|
||||
| Parameter | Type | Required | Description |
|
||||
| ------------ | ------ | -------- | ----------------------------------------------------------------------- |
|
||||
| `prompt` | string | Yes | A text description of the desired image |
|
||||
| `model` | string | Yes | The model to use \(gpt-image-1 or dall-e-3\) |
|
||||
| `size` | string | Yes | The size of the generated images \(1024x1024, 1024x1792, or 1792x1024\) |
|
||||
| `quality` | string | No | The quality of the image \(standard or hd\) |
|
||||
| `style` | string | No | The style of the image \(vivid or natural\) |
|
||||
| `background` | string | No | The background color, only for gpt-image-1 |
|
||||
| `n` | number | No | The number of images to generate \(1-10\) |
|
||||
| `apiKey` | string | Yes | Your OpenAI API key |
|
||||
|
||||
#### Output
|
||||
|
||||
@@ -77,9 +78,9 @@ Generate images using OpenAI
|
||||
|
||||
### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ---------- | ------ | -------- | ----------- |
|
||||
| `provider` | string | Yes | Provider |
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `prompt` | string | Yes | |
|
||||
|
||||
### Outputs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user