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
fix: accept betas body field from Claude Code clients (#360)
alex8687fb3cbb59
diff --git a/api/models/anthropic.py b/api/models/anthropic.pyindex 55977ffe..1d418df4 100644--- a/api/models/anthropic.py+++ b/api/models/anthropic.py@@ -153,6 +153,8 @@ class MessagesRequest(BaseModel):output_config: dict[str, Any] | None = Nonemcp_servers: list[dict[str, Any]] | None = Noneextra_body: dict[str, Any] | None = None+ # Beta feature flags sent by Claude Code as a body field; accepted but never forwarded.+ betas: list[str] | None = Field(default=None, exclude=True)class TokenCountRequest(BaseModel):@@ -169,3 +171,4 @@ class TokenCountRequest(BaseModel):context_management: dict[str, Any] | None = Noneoutput_config: dict[str, Any] | None = Nonemcp_servers: list[dict[str, Any]] | None = None+ betas: list[str] | None = Field(default=None, exclude=True)diff --git a/providers/kimi/request.py b/providers/kimi/request.pyindex 888ffb94..b81f5611 100644--- a/providers/kimi/request.py+++ b/providers/kimi/request.py@@ -19,7 +19,7 @@ def build_request_body(request_data: Any, *, thinking_enabled: bool) -> dict:try:body = build_base_request_body(request_data,- reasoning_replay=ReasoningReplayMode.DISABLED,+ reasoning_replay=ReasoningReplayMode.REASONING_CONTENT,)except OpenAIConversionError as exc:raise InvalidRequestError(str(exc)) from exc