MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / generate_sse_stop_chunk_with_usage

Function generate_sse_stop_chunk_with_usage

api_utils/utils.py:31–33  ·  view source on GitHub ↗

Generate SSE stop chunk with usage statistics

(req_id: str, model: str, usage_stats: dict, reason: str = "stop")

Source from the content-addressed store, hash-verified

29
30
31def generate_sse_stop_chunk_with_usage(req_id: str, model: str, usage_stats: dict, reason: str = "stop") -> str:
32 """Generate SSE stop chunk with usage statistics"""
33 return generate_sse_stop_chunk(req_id, model, reason, usage_stats)
34
35
36__all__ = [

Calls 1

generate_sse_stop_chunkFunction · 0.85