🔧 Switch to gemini-2.5-flash - properly supported for image generation

This commit is contained in:
2025-12-31 10:26:38 +01:00
parent fddc9021bb
commit 6daf686954
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ def generate_creature(zone_name: str, creature_name: str, description: str, styl
log_file.flush()
# Generate image
model = genai.GenerativeModel("gemini-1.5-flash")
model = genai.GenerativeModel("gemini-2.5-flash")
response = model.generate_content([full_prompt])
if hasattr(response, '_result') and response._result.candidates:

View File

@@ -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: