Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mayef
Copy link
Contributor

@mayef mayef commented Jan 19, 2026

Context

This PR attempts to address Issue #5189 .

Implementation

Override convertToolsForOpenAI in CerebrasHandler to ensure all tools have consistent strict: false values:

  • MCP tools cannot use strict mode because they have optional parameters from the MCP server schema
  • Setting all tools to strict: false ensures consistency with the Cerebras API requirement
  • The Cerebras handler already has a custom convertToolSchemaForOpenAI that strips unsupported fields, so non-strict mode is appropriate

Screenshots

image

How to Test

Run the Cerebras provider tests:

cd src && npm test api/providers/__tests__/cerebras.spec.ts -t "convertToolsForOpenAI"

@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: 8c7b0be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@chrarnoldus chrarnoldus left a comment

Choose a reason for hiding this comment

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

Cherry pick of RooCodeInc/Roo-Code#10589

@tris
Copy link

tris commented Jan 20, 2026

@chrarnoldus could you approve the workflows too? I'm itching to get Cerebrus to work :) 🙏

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.

3 participants