diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 22813ab..4edc219 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -1,6 +1,8 @@ import { NextRequest } from 'next/server' -const LLM_API_URL = 'https://api.riotpiao.com/v1/chat/completions' +const LLM_API_URL = process.env.NODE_ENV === 'production' + ? 'http://api-gateway.api.svc.cluster.local:8080/v1/chat/completions' + : 'https://api.riotpiao.com/v1/chat/completions' const MODEL = 'reasoning' const SYSTEM_PROMPT = `Poimen. Rock Liang's AI assistant. Answer about technical background, projects, expertise. Specific facts + metrics.