mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 12:49:32 +00:00
7 lines
311 B
TypeScript
7 lines
311 B
TypeScript
// Fireworks plugin module implements model id behavior.
|
|
export function isFireworksKimiModelId(modelId: string): boolean {
|
|
const normalized = modelId.trim().toLowerCase();
|
|
const lastSegment = normalized.split("/").pop() ?? normalized;
|
|
return /^kimi-k2(?:p[56]|[.-][56])(?:[-_].+)?$/.test(lastSegment);
|
|
}
|