{
"model": "GLM-4.6V-Flash",
"messages": [
{
"role": "system",
"content": "你是一个有用的AI助手。"
},
{
"role": "user",
"content": "请介绍一下人工智能的发展历程。"
}
],
"stream": false,
"temperature": 1
}curl --location --request POST 'https://maas.haoee.com/v1/chat/completions' \
--header 'Authorization: {{API_KEY}}' \
--header 'ModelName: GLM-4.6V-Flash' \
--header 'LineType: main' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "GLM-4.6V-Flash",
"messages": [
{
"role": "system",
"content": "你是一个有用的AI助手。"
},
{
"role": "user",
"content": "请介绍一下人工智能的发展历程。"
}
],
"stream": false,
"temperature": 1
}'{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}