mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
Add a Fireworks-owned thinking policy for Kimi models so K2.5/K2.6 only expose `off`, keep the bundled provider-policy artifact aligned, and keep request payloads on Fireworks-accepted `thinking: disabled` while stripping rejected `reasoning*` fields. Refs #74289.
18 lines
499 B
TypeScript
18 lines
499 B
TypeScript
import type { ProviderThinkingProfile } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { isFireworksKimiModelId } from "./model-id.js";
|
|
|
|
const FIREWORKS_KIMI_THINKING_PROFILE = {
|
|
levels: [{ id: "off" }],
|
|
defaultLevel: "off",
|
|
} as const satisfies ProviderThinkingProfile;
|
|
|
|
export function resolveFireworksThinkingProfile(
|
|
modelId: string,
|
|
): ProviderThinkingProfile | undefined {
|
|
if (!isFireworksKimiModelId(modelId)) {
|
|
return undefined;
|
|
}
|
|
|
|
return FIREWORKS_KIMI_THINKING_PROFILE;
|
|
}
|