country check for muse spark in free

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