- Issue created by @vakulrai
- 🇬🇧United Kingdom MrDaleSmith
I'm not able to recreate this issue using the latest versions of everything: can you recreate on a clean site without other modules?
When i enabled image automator to generate image and selected "default Image to text model" the node save was triggering warnings and not able to generate and save the image in the field.
Warning: Undefined array key "b64_json" in Drupal\ai_provider_openai\Plugin\AiProvider\OpenAiProvider->textToImage() (line 404 of /var/www/html/docroot/modules/contrib/ai_provider_openai/src/Plugin/AiProvider/OpenAiProvider.php)
Response: Below is the payload being passed in case of default.
[
"model" => "dall-e-3"
"prompt" => "Add any random image."
]
passing a response_format should fix the issue of warning and generate an image.
Active
1.0
Code
I'm not able to recreate this issue using the latest versions of everything: can you recreate on a clean site without other modules?