本文档由 数眼智能 提供,专注于人工智能行业的API服务商! 扫码入群即可领取免费额度!
curl --location --request POST 'https://api.shuyanai.com/v1beta/models/:generateContent' \
--header 'Authorization: {{Authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "你好"
}
]
}
]
}'{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "<think>**Formulating a Response**\n\nI'm currently crafting a friendly and helpful response in Chinese to the user's greeting. I plan to offer assistance and be prepared to switch to English if the user prefers, since that's my native language. I want to ensure the interaction is comfortable and productive.\n\n\n</think>\n\n你好!我能为你做些什么?"
}
]
},
"finishReason": "STOP",
"index": 0,
"safetyRatings": []
}
],
"usageMetadata": {
"promptTokenCount": 8,
"candidatesTokenCount": 78,
"totalTokenCount": 86,
"thoughtsTokenCount": 0,
"promptTokensDetails": "None"
}
}