fix: use internal Kubernetes DNS for api-gateway in production
Build & Push Portfolio Image / build-push (push) Successful in 2m45s
Build & Push Portfolio Image / build-push (push) Successful in 2m45s
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import { NextRequest } from 'next/server'
|
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 MODEL = 'reasoning'
|
||||||
|
|
||||||
const SYSTEM_PROMPT = `Poimen. Rock Liang's AI assistant. Answer about technical background, projects, expertise. Specific facts + metrics.
|
const SYSTEM_PROMPT = `Poimen. Rock Liang's AI assistant. Answer about technical background, projects, expertise. Specific facts + metrics.
|
||||||
|
|||||||
Reference in New Issue
Block a user