Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions additional_models/Dall-E/imageWorkflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#For more details see https://platform.openai.com/docs/api-reference/images/create

image:
steps:
- name: "generate_image"
method: "POST"
url: "https://api.openai.com/v1/images/generations"
headers:
Authorization: "Bearer &IMAGE_API_KEY"
Content-Type: "application/json"
body:
intent_detection_step: true
response_key: "data"
response_placeholders:
response_path: "data.url"
response_format: "url"
file_id_path: "created"
file_extention: "png"
Copy link

Copilot AI Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the key 'file_extention'; consider renaming it to 'file_extension' to improve clarity and consistency.

Suggested change
file_extention: "png"
file_extension: "png"

Copilot uses AI. Check for mistakes.
39 changes: 39 additions & 0 deletions additional_models/Dall-E/imagegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#Paramaters for OpenAI's Image Generation API
#The APIConfig struct assumes that each required and optional paramater has a description
Comment on lines +1 to +2
Copy link

Copilot AI Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the comment; 'Paramaters' should be corrected to 'Parameters'.

Suggested change
#Paramaters for OpenAI's Image Generation API
#The APIConfig struct assumes that each required and optional paramater has a description
#Parameters for OpenAI's Image Generation API
#The APIConfig struct assumes that each required and optional parameter has a description

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +2
Copy link

Copilot AI Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the comment; 'paramater' should be corrected to 'parameter'.

Suggested change
#Paramaters for OpenAI's Image Generation API
#The APIConfig struct assumes that each required and optional paramater has a description
#Parameters for OpenAI's Image Generation API
#The APIConfig struct assumes that each required and optional parameter has a description

Copilot uses AI. Check for mistakes.
# a (possibly nonexistent) List of options and a (possibly nonexistent) default val.
#For more details see https://platform.openai.com/docs/api-reference/images/create

endpoint: "https://api.openai.com/v1/images/generations"
method: "POST"
headers:
Authorization: "Bearer &IMAGE_API_KEY"
Content-Type: "application/json"
requiredParameters:
prompt:
description: "A text description of the desired image(s)."
options: []
optionalParameters:
model:
default: "dall-e-2"
description: "The model to use for image generation."
options: ["dall-e-2", "dall-e-3"]
n:
default: 1
description: "The number of images to generate. Must be between 1 and 10. Dall-e 3 Only supports 1 image per call"
options: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
quality:
default: "standard"
description: "The quality of the generated image. hd Only supported for dall-e-3."
options: ["standard", "hd"]
response_format:
default: "url"
description: "The format in which the generated images are returned."
options: ["url", "b64_json"]
size:
default: "1024x1024"
description: "The size of the generated images."
options: ["256x256", "512x512", "1024x1024", "1024x1024", "1792x1024", "1024x1792"]
Copy link

Copilot AI Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The '1024x1024' size option is duplicated. Removing the duplicate will prevent potential confusion and ensure correct configuration.

Suggested change
options: ["256x256", "512x512", "1024x1024", "1024x1024", "1792x1024", "1024x1792"]
options: ["256x256", "512x512", "1024x1024", "1792x1024", "1024x1792"]

Copilot uses AI. Check for mistakes.
style:
default: "vivid"
description: "The style of the generated images. Only supported for dall-e-3."
options: ["vivid", "natural"]
18 changes: 18 additions & 0 deletions additional_models/deep_ai/imageWorkflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#For more details see https://platform.openai.com/docs/api-reference/images/create

image:
steps:
- name: "generate_image"
method: "POST"
url: "https://api.deepai.org/api/text2img"
headers:
api-key: "&IMAGE_API_KEY"
Content-Type: "application/json"
body:
intent_detection_step: true
response_key: "data"
response_placeholders:
response_path: "output_url"
response_format: "url"
file_id_path: "id"
file_extention: "jpg"
Copy link

Copilot AI Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the key 'file_extention'; consider renaming it to 'file_extension' to ensure consistency.

Suggested change
file_extention: "jpg"
file_extension: "jpg"

Copilot uses AI. Check for mistakes.
8 changes: 8 additions & 0 deletions additional_models/deep_ai/imagegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
endpoint: "https://api.deepai.org/api/text2img"
method: "POST"
headers:
api-key: "&IMAGE_API_KEY"
requiredParameters:
text:
description: "A text description of the desired image(s)."
options: []