Merge pull request #262 from presenton/fix/gemini-flash-image-for-eu
chore: change gemini flash image generation to 2.5 flash preview
This commit is contained in:
commit
714f3a2929
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ class ImageGenerationService:
|
|||
client = genai.Client()
|
||||
response = await asyncio.to_thread(
|
||||
client.models.generate_content,
|
||||
model="gemini-2.0-flash-preview-image-generation",
|
||||
model="gemini-2.5-flash-image-preview",
|
||||
contents=[prompt],
|
||||
config=GenerateContentConfig(response_modalities=["TEXT", "IMAGE"]),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue