136 lines
3.2 KiB
JSON
136 lines
3.2 KiB
JSON
{
|
|
"events": [
|
|
{
|
|
"type": "message_start",
|
|
"message": {
|
|
"type": "message",
|
|
"model": "upstream-model",
|
|
"usage": {
|
|
"input_tokens": 0,
|
|
"cache_creation_input_tokens": 0,
|
|
"cache_read_input_tokens": 0,
|
|
"output_tokens": 0,
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0
|
|
},
|
|
"role": "assistant",
|
|
"id": "stream_fixed",
|
|
"content": []
|
|
}
|
|
},
|
|
{
|
|
"type": "content_block_start",
|
|
"index": 0,
|
|
"content_block": {
|
|
"type": "text",
|
|
"text": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "content_block_delta",
|
|
"index": 0,
|
|
"delta": {
|
|
"type": "text_delta",
|
|
"text": "Hello"
|
|
}
|
|
},
|
|
{
|
|
"type": "content_block_delta",
|
|
"index": 0,
|
|
"delta": {
|
|
"type": "text_delta",
|
|
"text": " world"
|
|
}
|
|
},
|
|
{
|
|
"type": "content_block_stop",
|
|
"index": 0
|
|
},
|
|
{
|
|
"type": "message_delta",
|
|
"usage": {
|
|
"input_tokens": 4,
|
|
"cache_creation_input_tokens": 0,
|
|
"cache_read_input_tokens": 0,
|
|
"output_tokens": 2,
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0,
|
|
"billing_usage": {
|
|
"source": "oai_chat",
|
|
"semantic": "openai",
|
|
"openai_usage": {
|
|
"prompt_tokens": 4,
|
|
"completion_tokens": 2,
|
|
"total_tokens": 6,
|
|
"prompt_tokens_details": {
|
|
"cached_tokens": 0,
|
|
"text_tokens": 4,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0
|
|
},
|
|
"completion_tokens_details": {
|
|
"text_tokens": 0,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0,
|
|
"reasoning_tokens": 0
|
|
},
|
|
"input_tokens": 0,
|
|
"output_tokens": 0,
|
|
"input_tokens_details": null,
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0
|
|
}
|
|
}
|
|
},
|
|
"delta": {
|
|
"stop_reason": "end_turn"
|
|
}
|
|
},
|
|
{
|
|
"type": "message_stop"
|
|
}
|
|
],
|
|
"usage": {
|
|
"prompt_tokens": 4,
|
|
"completion_tokens": 2,
|
|
"total_tokens": 6,
|
|
"billing_usage": {
|
|
"source": "gemini_chat",
|
|
"semantic": "gemini",
|
|
"gemini_usage_metadata": {
|
|
"promptTokenCount": 4,
|
|
"toolUsePromptTokenCount": 0,
|
|
"candidatesTokenCount": 2,
|
|
"totalTokenCount": 6,
|
|
"thoughtsTokenCount": 0,
|
|
"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": 0
|
|
},
|
|
"input_tokens": 4,
|
|
"output_tokens": 2,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 0,
|
|
"text_tokens": 4,
|
|
"audio_tokens": 0,
|
|
"image_tokens": 0
|
|
},
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0
|
|
}
|
|
}
|