Skip to content

An AI-powered search engine with a generative UI

chore: remove unnecessary check

Yoshiki Miura043203b3ba2f
diff --git a/lib/utils/registry.ts b/lib/utils/registry.ts
index 64484bdc..62680206 100644
--- a/lib/utils/registry.ts
+++ b/lib/utils/registry.ts
@@ -109,8 +109,7 @@ export function isProviderEnabled(providerId: string): boolean {
case 'openai-compatible':
return (
!!process.env.OPENAI_COMPATIBLE_API_KEY &&
- !!process.env.OPENAI_COMPATIBLE_API_BASE_URL &&
- !!process.env.NEXT_PUBLIC_OPENAI_COMPATIBLE_MODEL
+ !!process.env.OPENAI_COMPATIBLE_API_BASE_URL
)
default:
return false