test(api): prove inherited caller cancellation for baseten, fireworks and sambanova
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Read src/api/providers/base-openai-compatible-provider.ts first (the RequestConfigBuilder + throwIfAborted path from #1311) and compare it with the thin shells in src/api/providers/baseten.ts, fireworks.ts and sambanova.ts. Then read the existing base-openai-compatible-provider.spec.ts and base-openai-compatible-provider-timeout.spec.ts to copy their abort/timeout setup, and add one spec per provider next to the existing baseten.spec.ts / fireworks.spec.ts / sambanova.spec.ts asserting the inherited AbortError pass-through and the agreed timeout verdict. Done means those three specs pass against the merged base, the per-provider pass counts are recorded in the issue, and no provider-local abort wiring exists in the three files.
由索引模型根据 Issue 内容生成。
描述
Scope: verification only, no new wiring
baseten, fireworks and sambaNova are thin shells over the shared compatible base - at main 75a93a9d9acc each file is ~20 lines with no method overrides and no abort handling of its own:
src/api/providers/baseten.ts:6: export class BasetenHandler extends BaseOpenAiCompatibleProvider<BasetenModelId> {
src/api/providers/fireworks.ts:7: export class FireworksHandler extends BaseOpenAiCompatibleProvider<FireworksModelId> {
src/api/providers/sambanova.ts:7: export class SambaNovaHandler extends BaseOpenAiCompatibleProvider<SambaNovaModelId> {
git grep -c -F abortSignal returns nothing for all three: they receive caller cancellation and the request timeout entirely through base-openai-compatible-provider.ts (the RequestConfigBuilder + throwIfAborted path that #1311 adds). They therefore need no provider-specific patch PR, and they are not part of the seven hand-written bridges listed in #2486.
Acceptance criteria (after #1311 merges)
- Re-run
baseten.spec.ts,fireworks.spec.ts,sambanova.spec.tstogether withbase-openai-compatible-provider.spec.tsandbase-openai-compatible-provider-timeout.spec.tsagainst the merged base, and record the pass/fail count per provider in this issue. - Add one small regression spec per provider pinning the inherited contract rather than the base contract:
- a pre-aborted caller rejects with
name === "AbortError"before any HTTP request is issued; - a cancel during the request rejects with
AbortErrorand is not re-wrapped with the provider's own error prefix; - a timeout expiry surfaces with the verdict that #2486 U0b settles for this family (
TimeoutErrorfromcreateTimeoutError(providerName, phase)vs the gateway family'sAbortError) - the specs must not drift per provider.
- a pre-aborted caller rejects with
- Confirm no provider-local
AbortController/addEventListener("abort")appears in the three files, so #2486 U7 can keep the hygiene selectors strict.
Budget
Three focused specs in one PR, roughly 120 a+d total; no production file changes expected unless a criterion above fails.
Dependencies
- #1311 (the compatible-base cancellation they inherit) must merge first.
- #2486 U0b decides the timeout verdict this issue must pin.
- #616 (abort pass-through umbrella) is the tracker to close once these three are proven.
Sibling families that inherit rather than patch, for the same record: deepseek / mimo / moonshot / kimi-code via OpenAiHandler (covered by #1311 specs), github-copilot via VsCodeLmHandler (#2486 U6), vertex via GeminiHandler.
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 301
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 103
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Zoo-Code-Org/Zoo-Code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
维护者通常 3 天内回复
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on Windows可能已有人在做 @easonLiangWorldedtech 于 15 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
维护者通常 3 天内回复
-
[BUG] search_files hides matching text on long lines可能已有人在做 @DananjayaNadun 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
查看 Zoo-Code-Org/Zoo-Code 的全部 Issue
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 model未关闭
难度 2/5 1-3 小时 新手友好度 67/100
tashfeenahmed/freellmapi#2169 ·
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on record未关闭
难度 2/5 1-3 小时 新手友好度 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
vercel-labs/ui#1563 ·
维护者通常 1 天内回复