chore: change gemini flash image generation to 2.5 flash preview
This commit is contained in:
parent
5b507bccc7
commit
fa8a8c20f1
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