ToolJet/marketplace/plugins/openai/lib
namanmathur372 d08cdebbfa
Add Model-Specific Size Validation and Update Size Parameter Placeholders for Image Generation (#10923)
* Update size parameter placeholder for image generation

Updated the placeholder for the size parameter in the operations.json file to specify valid options based on the selected model (DALL-E 2 or DALL-E 3).
- Added size options for DALL-E 2: 256x256, 512x512, 1024x1024 (default: 1024x1024)
- Added size options for DALL-E 3: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)

* Implement model-specific size validation for image generation

Added logic to enforce model-specific size validation for DALL-E 2 and DALL-E 3 in the query_operations.ts file.
- DALL-E 3 accepts sizes: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
- DALL-E 2 accepts sizes: 256x256, 512x512, 1024x1024 (default: 1024x1024)
- Introduced a utility function to validate and apply the appropriate size based on the selected model.
2024-10-10 11:56:16 +05:30
..
icon.svg Feature: TJDB UX Revamp (#8538) 2024-02-08 15:05:26 +05:30
index.ts Enhance OpenAI Datasource Schema with Image Generation and Model Selection Support (#10669) 2024-10-09 15:16:27 +05:30
manifest.json Feature : OpenAI plugin (#5975) 2023-04-11 11:07:27 +05:30
operations.json Add Model-Specific Size Validation and Update Size Parameter Placeholders for Image Generation (#10923) 2024-10-10 11:56:16 +05:30
query_operations.ts Add Model-Specific Size Validation and Update Size Parameter Placeholders for Image Generation (#10923) 2024-10-10 11:56:16 +05:30
types.ts Enhance OpenAI Datasource Schema with Image Generation and Model Selection Support (#10669) 2024-10-09 15:16:27 +05:30