fix: update SiliconFlow default endpoint to .cn (#543)

SiliconFlow is transitioning from .com to .cn domain. The .cn endpoint
uses Global Traffic Manager (GTM) for better global access, while .com
is being phased out.
This commit is contained in:
Dayuan Jiang
2026-01-09 13:21:34 +09:00
committed by GitHub
parent 73f282e568
commit 22f4c2e270
3 changed files with 4 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ export async function POST(req: Request) {
case "siliconflow": {
const sf = createOpenAI({
apiKey,
baseURL: baseUrl || "https://api.siliconflow.com/v1",
baseURL: baseUrl || "https://api.siliconflow.cn/v1",
})
model = sf.chat(modelId)
break