error on generating image

Created on 23 July 2024, 4 months ago

Problem/Motivation

undefined method GuzzleHttp\Psr7\Stream::getAsBase64EncodedString() in /var/www/html/web/modules/contrib/ai/modules/ai_api_explorer/src/Form/TextToImageGenerationForm.php on line 182 #0 [internal function]: Drupal\ai_api_explorer\Form\TextToImageGenerationForm->getResponse()

Steps to reproduce

1. Enable the module
2. Configure the Key
3. Go to AI explorer /admin/config/development/ai-image-generation
and choose Fireworks AI *(Stable diffusion XL V1.0)
4. Add prompt "an adventurer on a tropical island "
5. Click generate an image.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium wouters_f Leuven

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @wouters_f
  • I am also experiencing the exact same issue and error. Text and chat functions work, but I am completely unable to generate any images. Did you ever find a solution to this?

  • I confirmed that Fireworks AI is receiving and attempting to fulfill the requests I submit from the AI explorer. My failed requests are being applied against the billing. However the AI logs indicate that no response is received from Fireworks AI. I hope this helps. These AI modues are really amazing and the hard work is much appreciated.

    I am really looking forward to getting this working because the OpenAI image generation cost adds up quicker than I would like but its the only image model I can get working right now.

Production build 0.71.5 2024