mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 04:20:41 +00:00
7 lines
270 B
TypeScript
7 lines
270 B
TypeScript
import { normalizeLowercaseStringOrEmpty } from "./string-coerce.js";
|
|
|
|
export function isGemma4ModelId(modelId?: string | null): boolean {
|
|
const normalized = normalizeLowercaseStringOrEmpty(modelId);
|
|
return /(?:^|[/_:-])gemma[-_]?4(?:$|[/_.:-])/.test(normalized);
|
|
}
|