Based on QuantumNous/new-api v1.0.0-rc.36 (shallow history squashed). - CNY quota display mode: RMB-denominated top-up and crediting across Epay/Waffo channels - New CheckinButton in both authenticated and public headers (Turnstile supported) - New /subscribe page with public plan snapshot, Alipay/balance payment, auto group upgrade/reset - New /docs 12-section beginner guide with anchor navigation - New home PromoBanner linking to /docs; i18n synced (en/zh/zh-TW/fr/ja/ru/vi) - README: document custom features, live demo https://ai.88531.cn
187 lines
4.8 KiB
JSON
187 lines
4.8 KiB
JSON
{
|
|
"events": [
|
|
{
|
|
"id": "stream_fixed",
|
|
"object": "chat.completion.chunk",
|
|
"created": 0,
|
|
"model": "upstream-model",
|
|
"system_fingerprint": null,
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "Hello"
|
|
},
|
|
"logprobs": null,
|
|
"finish_reason": null,
|
|
"index": 0
|
|
}
|
|
],
|
|
"usage": {
|
|
"prompt_tokens": 0,
|
|
"completion_tokens": 0,
|
|
"total_tokens": 0,
|
|
"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": 0,
|
|
"output_tokens": 0,
|
|
"input_tokens_details": null,
|
|
"claude_cache_creation_5_m_tokens": 0,
|
|
"claude_cache_creation_1_h_tokens": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "stream_fixed",
|
|
"object": "chat.completion.chunk",
|
|
"created": 0,
|
|
"model": "upstream-model",
|
|
"system_fingerprint": null,
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " world"
|
|
},
|
|
"logprobs": null,
|
|
"finish_reason": null,
|
|
"index": 0
|
|
}
|
|
],
|
|
"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": 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
|
|
}
|
|
},
|
|
{
|
|
"id": "stream_fixed",
|
|
"object": "chat.completion.chunk",
|
|
"created": 0,
|
|
"model": "upstream-model",
|
|
"system_fingerprint": null,
|
|
"choices": [
|
|
{
|
|
"delta": {},
|
|
"logprobs": null,
|
|
"finish_reason": "stop",
|
|
"index": 0
|
|
}
|
|
],
|
|
"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": 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
|
|
}
|
|
}
|
|
],
|
|
"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": 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
|
|
}
|
|
}
|