🔧 Switch to gemini-2.5-flash - properly supported for image generation
This commit is contained in:
@@ -43,7 +43,7 @@ def generate_image(prompt: str, output_path: Path, log_file):
|
||||
log_file.write(f"{time.strftime('%H:%M:%S')} - Generating {output_path.name}\n")
|
||||
log_file.flush()
|
||||
|
||||
model = genai.GenerativeModel('gemini-1.5-flash')
|
||||
model = genai.GenerativeModel('gemini-2.5-flash')
|
||||
response = model.generate_content([prompt])
|
||||
|
||||
if hasattr(response, '_result') and response._result.candidates:
|
||||
|
||||
Reference in New Issue
Block a user