fix(timeout): raise default chat timeout 120s→600s (env-configurable)#14
Merged
Merged
Conversation
120s timed out non-streaming reasoning calls, which routinely take 200-300s+. On timeout the client raises while the gateway keeps generating server-side and settles x402 — so the wallet is charged but the call is missing from the caller's logs. Default 600s aligns with the OpenAI/Anthropic SDKs; override via the BLOCKRUN_CHAT_TIMEOUT env var. For streaming this is a per-chunk read timeout; for non-stream it bounds the whole call.
VickyXAI
added a commit
that referenced
this pull request
Jun 26, 2026
…lient (#15) Follow-up to #14, which raised the OpenAI-compat chat default to an env-configurable 600s but left AnthropicClient — the native opus-4.8 /v1/messages path, exactly the reasoning case that needs 200–300s — hardcoded at 120s. Mirror the same BLOCKRUN_CHAT_TIMEOUT env default, fix stale 'default: 120' docstrings in client.py + anthropic_client.py, and black-format solana_client.py (the lint that failed #14's CI). Co-authored-by: 1bcMax <viewitter@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
DEFAULT_CHAT_TIMEOUT = 120(andLLMClient/AsyncLLMClientdefaulttimeout=120) is too low for reasoning models (opus-4.8 / deepseek-v4-pro take 200–300s+). Non-streaming calls time out at 120s; the client raises while the gateway finishes server-side and settles x402 → charged but missing from the caller's logs.Change
solana_client.pyDEFAULT_CHAT_TIMEOUTandclient.pyLLMClient/AsyncLLMClientdefault timeout: 120s → 600s.BLOCKRUN_CHAT_TIMEOUTenv var.Notes