Skip to content

Commit 3cb7db2

Browse files
committed
Free mode: Allow more english speaking countries
1 parent bfb8179 commit 3cb7db2

File tree

1 file changed

+5
-1
lines changed
  • web/src/app/api/v1/chat/completions

1 file changed

+5
-1
lines changed

web/src/app/api/v1/chat/completions/_post.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ import {
6464
} from '@/llm-api/openrouter'
6565
import { extractApiKeyFromHeader } from '@/util/auth'
6666

67-
const FREE_MODE_ALLOWED_COUNTRIES = new Set(['US', 'CA'])
67+
const FREE_MODE_ALLOWED_COUNTRIES = new Set([
68+
'US', 'CA',
69+
'GB', 'AU',
70+
'NO', 'SE', 'NL', 'DK', 'DE', 'FI', 'BE', 'LU', 'CH', 'IE', 'IS',
71+
])
6872

6973
function extractClientIp(req: NextRequest): string | undefined {
7074
const forwardedFor = req.headers.get('x-forwarded-for')

0 commit comments

Comments
 (0)