Skip to content

Delete unsupported parameter for Grok Code Fast 1#980

Merged
chrarnoldus merged 1 commit intomainfrom
christiaan/delete-reasoning-effort
Mar 10, 2026
Merged

Delete unsupported parameter for Grok Code Fast 1#980
chrarnoldus merged 1 commit intomainfrom
christiaan/delete-reasoning-effort

Conversation

@chrarnoldus
Copy link
Copy Markdown
Contributor

@chrarnoldus chrarnoldus commented Mar 10, 2026

Comment thread src/lib/providers/xai.ts
extraHeaders: Record<string, string>
) {
if (requestedModel === grok_code_fast_1_optimized_free_model.public_id) {
delete requestToMutate.reasoning;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: This silently disables reasoning for a model that still advertises reasoning support.

grok_code_fast_1_optimized_free_model still has the reasoning flag, and convertFromKiloModel() derives supported_parameters from that flag, so clients will continue offering reasoning for this model even though the request drops it here. That creates an API-contract mismatch where a user can select thinking mode and get instant mode with no signal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is a reasoning model, it's just not configurable.

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Mar 10, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
src/lib/providers/xai.ts 52 Strips reasoning for a model that still advertises reasoning support, creating a metadata/API mismatch.

Fix these issues in Kilo Cloud

Other Observations (not in diff)

None.

Files Reviewed (2 files)
  • src/lib/providers/index.ts - 0 issues
  • src/lib/providers/xai.ts - 1 issue

@chrarnoldus chrarnoldus enabled auto-merge March 10, 2026 12:19
@chrarnoldus chrarnoldus merged commit e18b42f into main Mar 10, 2026
18 checks passed
@chrarnoldus chrarnoldus deleted the christiaan/delete-reasoning-effort branch March 10, 2026 12:20
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.

2 participants