country check for muse spark in free

This commit is contained in:
Frank
2026-08-19 22:44:35 -04:00
parent 4c5960dc4b
commit 1b77242d40
@@ -71,7 +71,7 @@ export function countryFromRequest(request: Request | undefined) {
export function isModelCountryRestricted(model: string, country: string | undefined) {
return (
model === "muse-spark-1.2-contributor" &&
["muse-spark-1.2-contributor", "muse-spark-1.2-contributor-free"].includes(model) &&
country !== undefined &&
MUSE_SPARK_BLOCKED_COUNTRIES.has(country.toUpperCase())
)