{
"contents": [
{
"role": "user",
"parts": [
{
"text": "写一首诗"
}
]
}
]
}curl --location '/v1beta/models/:streamGenerateContent?alt=sse' \
--header 'Authorization: {{Authorization}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "写一首诗"
}
]
}
]
}'{}