Files
openclaw/extensions/huggingface/model-discovery-env.ts
2026-06-04 21:02:07 -04:00

7 lines
261 B
TypeScript

// Huggingface plugin module implements model discovery env behavior.
export function isHuggingfaceModelDiscoveryTestEnvironment(
env: Record<string, string | undefined> = process.env,
): boolean {
return env.VITEST === "true" || env.NODE_ENV === "test";
}