Closed opnoice closed 2 months ago
This error means that Gemini did not generate a new image.
Try explicitly changing the prompt to 'generate ~', and check the 'response.response_dict'.
I'll modify the sample code and patch the version within 48 hours after completing the debugging.
I have checked this issue and try to resolve.
Try to pass cookies
arguments, when you want to save generated images.
And if your error persist, please report again. I updated readme.
from gemini import Gemini, GeminiImage
prompt = "Create illustrations of Seoul, South Korea."
response = GeminiClient.generate_content(prompt)
generated_images = response.generated_images # Check generated images [Dict]
GeminiImage.save_sync(generated_images, save_path="cached_folder", cookies = cookies)
Do you have still issue?
Code Used:
Error: