mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 11:30:03 +00:00
- Only use provider completion_tokens when it is an int; otherwise estimate - Coerce message_start/message_delta usage fields to safe integers in SSEBuilder - Add regression tests for null upstream completion_tokens and builder edge cases Claude Code could crash (e.g. undefined access on usage) when NIM/GLM or similar sent usage with null token fields in streamed message_delta. |
||
|---|---|---|
| .. | ||
| api | ||
| cli | ||
| config | ||
| contracts | ||
| core | ||
| messaging | ||
| providers | ||
| __init__.py | ||
| conftest.py | ||
| provider_request_mocks.py | ||
| stream_contract.py | ||