From c6f6461494e796b8916e44a54b69b4174af0ce1b Mon Sep 17 00:00:00 2001 From: hu-qi Date: Mon, 5 Jan 2026 11:13:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0spark=20API=E7=AB=AF?= =?UTF-8?q?=E7=82=B9=E4=BB=8Ev1=E5=88=B0v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hu-qi --- lib/spark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spark.ts b/lib/spark.ts index 83898b9..ab40dcd 100644 --- a/lib/spark.ts +++ b/lib/spark.ts @@ -137,7 +137,7 @@ export async function chatSparkX1Http({ user: "GoodActionHub", } - const resp = await fetch("https://spark-api-open.xf-yun.com/v1/chat/completions", { + const resp = await fetch("https://spark-api-open.xf-yun.com/v2/chat/completions", { method: "POST", headers: { "Content-Type": "application/json",