From 7520fff7f2f1e0fc9f65dbc1bfa09eb57a19600d Mon Sep 17 00:00:00 2001 From: Mitchell Date: Wed, 26 Mar 2025 14:14:10 -0400 Subject: [PATCH] added the working yaml files from Deep AI. and created a folder to hold all of our additional files --- additional_models/Dall-E/imageWorkflow.yaml | 18 +++++++++ additional_models/Dall-E/imagegen.yaml | 39 ++++++++++++++++++++ additional_models/deep_ai/imageWorkflow.yaml | 18 +++++++++ additional_models/deep_ai/imagegen.yaml | 8 ++++ 4 files changed, 83 insertions(+) create mode 100644 additional_models/Dall-E/imageWorkflow.yaml create mode 100644 additional_models/Dall-E/imagegen.yaml create mode 100644 additional_models/deep_ai/imageWorkflow.yaml create mode 100644 additional_models/deep_ai/imagegen.yaml diff --git a/additional_models/Dall-E/imageWorkflow.yaml b/additional_models/Dall-E/imageWorkflow.yaml new file mode 100644 index 0000000..8f49d8c --- /dev/null +++ b/additional_models/Dall-E/imageWorkflow.yaml @@ -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" diff --git a/additional_models/Dall-E/imagegen.yaml b/additional_models/Dall-E/imagegen.yaml new file mode 100644 index 0000000..e36dca9 --- /dev/null +++ b/additional_models/Dall-E/imagegen.yaml @@ -0,0 +1,39 @@ +#Paramaters for OpenAI's Image Generation API +#The APIConfig struct assumes that each required and optional paramater has a description +# 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"] + style: + default: "vivid" + description: "The style of the generated images. Only supported for dall-e-3." + options: ["vivid", "natural"] \ No newline at end of file diff --git a/additional_models/deep_ai/imageWorkflow.yaml b/additional_models/deep_ai/imageWorkflow.yaml new file mode 100644 index 0000000..e7295e5 --- /dev/null +++ b/additional_models/deep_ai/imageWorkflow.yaml @@ -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" diff --git a/additional_models/deep_ai/imagegen.yaml b/additional_models/deep_ai/imagegen.yaml new file mode 100644 index 0000000..443ca6e --- /dev/null +++ b/additional_models/deep_ai/imagegen.yaml @@ -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: [] \ No newline at end of file