diff --git a/skillclaw/protocols/anthropic_messages.py b/skillclaw/protocols/anthropic_messages.py index 00cef7f..bd6b20a 100644 --- a/skillclaw/protocols/anthropic_messages.py +++ b/skillclaw/protocols/anthropic_messages.py @@ -316,7 +316,10 @@ def sse(event: str, data: dict[str, Any]) -> str: { "type": "message_delta", "delta": {"stop_reason": stop_reason, "stop_sequence": None}, - "usage": {"output_tokens": usage.get("completion_tokens", 0)}, + "usage": { + "input_tokens": usage.get("prompt_tokens", 0), + "output_tokens": usage.get("completion_tokens", 0), + }, }, ) yield sse("message_stop", {"type": "message_stop"})