Skip to content

Commit be270f3

Browse files
fix(py): update google_genai_hello sample with genimi bot comments
1 parent 9d0899e commit be270f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/samples/google-genai-hello/src/google_genai_hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def generate_images(name: str, ctx):
330330
result = await ai.generate(
331331
model='googleai/gemini-2.5-flash-image',
332332
prompt=f'tell me about {name} with photos',
333-
config={'response_modalities': ['text', 'image']},
333+
config=GeminiConfigSchema(response_modalities=['text', 'image']).model_dump(exclude_none=True),
334334
)
335335
return result
336336

0 commit comments

Comments
 (0)