CI: TypeScript red on main — provider test still expects the pre-#1260 10 s Altimate Base header timeout

Open Beginner friendly
#1,264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
94/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
ci-cd, testing

Research direction

Open test/provider/provider.test.ts at the assertion on line 85 and review the Altimate Base provider contract introduced by #1260. Update the expected header timeout to 300_000 and clarify the comment about its difference from OpenAI's default, then run the TypeScript provider test to confirm CI passes.

Written by the indexing model from the issue text.

Description

Summary

main's TypeScript CI job fails since #1260 (5f9cb88d59) on one assertion:

test/provider/provider.test.ts:85
  expect(base.options.headerTimeout).toBe(10_000)
  Expected: 10000   Received: 300000

(Altimate Base is pinned to the hosted model contract without affecting other providers).

Cause

#1260 raised the Altimate Base header timeout from OpenAI's 10 s default to FREE_TIER_HEADER_TIMEOUT_DEFAULT = 300_000 (env-overridable via ALTIMATE_BASE_HEADER_TIMEOUT_MS) but did not update the test that pins the provider contract. Every PR's merge-ref CI now inherits the failure.

Fix

Update the assertion to 300_000 and its comment to explain why the value differs from the openai loader's default.

Dominant language
TypeScript
Stars
813
Forks
134
Avg merge
2d 5h
Merged PRs (30d)
62

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AltimateAI/altimate-code

All issues in AltimateAI/altimate-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.