mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 19:11:46 +00:00
7 lines
261 B
TypeScript
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";
|
|
}
|