28e53d90fc
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
92 lines
2.1 KiB
JSON
92 lines
2.1 KiB
JSON
{
|
|
"id": "chatcmpl-<uuid>",
|
|
"object": "response",
|
|
"created_at": 0,
|
|
"status": "completed",
|
|
"instructions": null,
|
|
"max_output_tokens": 0,
|
|
"model": "upstream-model",
|
|
"output": [
|
|
{
|
|
"type": "message",
|
|
"id": "chatcmpl-<uuid>_msg_0",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "The answer is 42.",
|
|
"annotations": []
|
|
}
|
|
],
|
|
"quality": "",
|
|
"size": ""
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"id": "call_<uuid>",
|
|
"status": "completed",
|
|
"role": "",
|
|
"content": null,
|
|
"quality": "",
|
|
"size": "",
|
|
"call_id": "call_<uuid>",
|
|
"name": "get_weather",
|
|
"arguments": "{\"city\":\"Paris\"}"
|
|
}
|
|
],
|
|
"parallel_tool_calls": false,
|
|
"previous_response_id": null,
|
|
"reasoning": null,
|
|
"store": false,
|
|
"temperature": 0,
|
|
"tool_choice": null,
|
|
"tools": null,
|
|
"top_p": 0,
|
|
"truncation": null,
|
|
"usage": {
|
|
"prompt_tokens": 10,
|
|
"completion_tokens": 7,
|
|
"total_tokens": 15,
|
|
"billing_usage": {
|
|
"source": "gemini_chat",
|
|
"semantic": "gemini",
|
|
"gemini_usage_metadata": {
|
|
"promptTokenCount": 10,
|
|
"toolUsePromptTokenCount": 0,
|
|
"candidatesTokenCount": 5,
|
|
"totalTokenCount": 15,
|
|
"thoughtsTokenCount": 2,
|
|
"cachedContentTokenCount": 0,
|
|
"promptTokensDetails": [],
|
|
"toolUsePromptTokensDetails": [],
|
|
"candidatesTokensDetails": []
|
|
}
|
|
},
|
|
"prompt_tokens_details": {
|
|
"cached_tokens": 0,
|
|
"text_tokens": 0,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0
|
|
},
|
|
"completion_tokens_details": {
|
|
"text_tokens": 0,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0,
|
|
"reasoning_tokens": 2
|
|
},
|
|
"input_tokens": 10,
|
|
"output_tokens": 7,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 0,
|
|
"text_tokens": 10,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0
|
|
},
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0
|
|
},
|
|
"user": null,
|
|
"metadata": null
|
|
}
|