项目文件夹

文件
wehub-resource-sync 3265a2de25
CI / ci (push) Failing after 2s
Docker Build and Push / build-and-push (push) Failing after 1s
Publish MCP Server / publish (push) Failing after 2s
Test / Lint & Unit Tests (push) Failing after 0s
Test / E2E Tests (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:11:19 +08:00

15 行
480 B
TypeScript

import { NextResponse } from "next/server"
import { loadFlattenedServerModels } from "@/lib/server-model-config"
// Use dynamic rendering to read AI_MODEL/AI_PROVIDER env vars at runtime
// This ensures Docker users can set these values when starting containers
export const dynamic = "force-dynamic"
export async function GET() {
const models = await loadFlattenedServerModels()
return NextResponse.json({
models,
hasConfig: models.length > 0,
})
}