{
"contents": [
{
"parts": [
{
"text": "你好"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingLevel": "low"
}
}
}curl --location 'https://api.wenwen-ai.com/v1beta/models/:streamGenerateContent?alt=sse' \
--header 'x-goog-api-key: sk-xxxx' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "你好"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingLevel": "low"
}
}
}'{'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
}
}