fix(grok): strip reasoningEffort for grok cli models (#6938)

Co-authored-by: minisforum <no@mail.com>
Co-authored-by: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com>
This commit is contained in:
CitrusIce
2026-07-17 12:01:57 +08:00
committed by GitHub
parent 8c94cb5977
commit da3a0be69e

View File

@@ -15,13 +15,25 @@ export const grok_cliProvider: RegistryEntry = {
id: "grok-build", id: "grok-build",
name: "Grok Build", name: "Grok Build",
contextLength: 256000, contextLength: 256000,
unsupportedParams: ["presencePenalty", "frequencyPenalty", "logprobs", "topLogprobs"], unsupportedParams: [
"presencePenalty",
"frequencyPenalty",
"logprobs",
"topLogprobs",
"reasoningEffort",
],
}, },
{ {
id: "grok-composer-2.5-fast", id: "grok-composer-2.5-fast",
name: "Grok Composer 2.5 Fast", name: "Grok Composer 2.5 Fast",
contextLength: 200000, contextLength: 200000,
unsupportedParams: ["presencePenalty", "frequencyPenalty", "logprobs", "topLogprobs"], unsupportedParams: [
"presencePenalty",
"frequencyPenalty",
"logprobs",
"topLogprobs",
"reasoningEffort",
],
}, },
], ],
oauth: { oauth: {