Skip to content

feat(llm): per-request timeout through http transport options - #180

Merged
LeXwDeX merged 1 commit into
devfrom
feat/llm-request-timeout
Aug 7, 2026
Merged

feat(llm): per-request timeout through http transport options#180
LeXwDeX merged 1 commit into
devfrom
feat/llm-request-timeout

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Aug 7, 2026

Copy link
Copy Markdown
Owner

内容

  • HttpOptions 新增 timeout(DurationFromMillis,可选);多份 options 合并取最后一个显式 timeout(findLast,与 Config.entries lowest→highest 优先级约定一致)
  • http transport 将 timeout 应用于请求流消费(Stream.timeoutOrElse per-pull 语义:无数据产出即超时,文案已对齐)
  • 测试:transport-timeout.test.ts 覆盖超时触发 / 未触发 / 合并优先级

验证

  • 提交时 pre-commit 全量 typecheck + lint 通过;工作流内 packages/llm typecheck exit 0、llm 测试 287 pass
  • 下游消费方(session runner turn timeout)在后续 PR(feat/session-runner-hotpath)接入

- HttpOptions 新增 timeout(DurationFromMillis,Schema.optional);多份 options 合并时取最后一个显式 timeout(findLast,与 entries lowest→highest 优先级约定一致)
- http transport 将 timeout 应用到请求(超时语义 = 无数据产出即超时,Stream.timeoutOrElse per-pull)
- 测试:transport-timeout.test.ts 覆盖超时触发/未触发/合并优先级
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