Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Oct 29, 2025

This PR fixes the failing CI test in PR #8897.

Problem

The test in src/api/providers/tests/cerebras.spec.ts was failing because it expected the default Cerebras model to be qwen-3-coder-480b, but PR #8897 changed the default to gpt-oss-120b.

Solution

Updated the test expectation to match the new default model ID (gpt-oss-120b).

Testing

  • Ran the test locally and verified it passes
  • All 14 tests in the cerebras.spec.ts file pass

Fixes the failing CI test in #8897

@daniel-lxs daniel-lxs requested review from cte, jr and mrubens as code owners October 29, 2025 20:50
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Oct 29, 2025
@roomote
Copy link

roomote bot commented Oct 29, 2025

Review Summary

Found 1 issue that needs to be addressed:

  • Fix incorrect test expectation - the test expects "gpt-oss-120b" but the code will return "qwen-3-coder-480b" due to model routing logic

Follow Along on Roo Code Cloud

@daniel-lxs daniel-lxs closed this Oct 29, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 29, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 29, 2025
const handlerWithoutModel = new CerebrasHandler({ cerebrasApiKey: "test" })
const { id } = handlerWithoutModel.getModel()
expect(id).toBe("qwen-3-coder-480b") // cerebrasDefaultModelId (routed)
expect(id).toBe("gpt-oss-120b") // cerebrasDefaultModelId
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test expectation is incorrect. The actual code returns "qwen-3-coder-480b" because: (1) cerebrasDefaultModelId is still set to "qwen-3-coder-480b-free" in the types package, and (2) the getModel() method routes "qwen-3-coder-480b-free" to "qwen-3-coder-480b" (see lines 107-109 in cerebras.ts). To fix this, either update cerebrasDefaultModelId to "gpt-oss-120b" in packages/types/src/providers/cerebras.ts, or change this expectation back to "qwen-3-coder-480b".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants