You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a bunch of examples for the new SDK rthat look like this:
response = client.models.generate_content(
model=MODEL_ID,
contents=[
types.Content(
role="user",
parts=[
types.Part.from_uri(
file_uri=file_upload.uri,
mime_type=file_upload.mime_type),
]),
"Write a short and engaging blog post based on this picture.",
]
)
They can be simplified to:
response = client.models.generate_content(
model=MODEL_ID,
contents=[
file_upload,
"Write a short and engaging blog post based on this picture.",
]
)
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered:
Description of the bug:
There are a bunch of examples for the new SDK rthat look like this:
They can be simplified to:
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: