Skip to content

fix(timeout): wire 600s default into OpenAI + Anthropic compat wrappers (follow-up to #6)#7

Merged
VickyXAI merged 1 commit into
mainfrom
fix/ts-wrapper-timeout
Jun 26, 2026
Merged

fix(timeout): wire 600s default into OpenAI + Anthropic compat wrappers (follow-up to #6)#7
VickyXAI merged 1 commit into
mainfrom
fix/ts-wrapper-timeout

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

#6 added the env-configurable 600s DEFAULT_TIMEOUT but only wired it into the native LLMClient. The two README drop-in wrappers still hardcoded 60000ms:

  • openai-compat.ts passed truthy 60000 into LLMClient (shadowing the default)
  • anthropic-compat.ts used ?? 60000 directly

So OpenAI()/AnthropicClient() users still timed out at 60s on reasoning calls (opus-4.8/deepseek-v4-pro). This exports DEFAULT_TIMEOUT and routes both wrappers through it, and fixes stale default: 60000 docs. Typecheck + build green.

Follow-up to #6, which added the env-configurable 600s DEFAULT_TIMEOUT but only
wired it into the native LLMClient path. The OpenAI/Anthropic drop-in wrappers
hardcoded 60000ms (openai-compat passed truthy 60000 into LLMClient; anthropic-compat
used it directly), so README drop-in users still timed out at 60s on reasoning calls.
Export DEFAULT_TIMEOUT from client.ts; both wrappers now fall through to it. Fix
stale default:60000 doc comments.
@VickyXAI VickyXAI merged commit 48183c9 into main Jun 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant