Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

style: apply ruff format

github-actions[bot]9822e2d6a13f
diff --git a/api/request_utils.py b/api/request_utils.py
index 6a0d1302..4b3a04c3 100644
--- a/api/request_utils.py
+++ b/api/request_utils.py
@@ -87,7 +87,7 @@ def get_token_count(
else:
try:
total_tokens += len(ENCODER.encode(json.dumps(block)))
- except (TypeError, ValueError):
+ except TypeError, ValueError:
total_tokens += len(ENCODER.encode(str(block)))
if tools: