From 4149a12f7cc87185c1989741e2332b8f73c8e173 Mon Sep 17 00:00:00 2001 From: chenjh3 Date: Thu, 16 Jan 2025 14:49:10 +0800 Subject: [PATCH] fix: SparkLite API Auth error (#12781) --- api/core/model_runtime/model_providers/spark/llm/_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/model_runtime/model_providers/spark/llm/_client.py b/api/core/model_runtime/model_providers/spark/llm/_client.py index 48911f657a52e3..d8421cd7a0100a 100644 --- a/api/core/model_runtime/model_providers/spark/llm/_client.py +++ b/api/core/model_runtime/model_providers/spark/llm/_client.py @@ -21,7 +21,7 @@ def __init__(self, model: str, app_id: str, api_key: str, api_secret: str, api_d domain = api_domain model_api_configs = { - "spark-lite": {"version": "v1.1", "chat_domain": "general"}, + "spark-lite": {"version": "v1.1", "chat_domain": "lite"}, "spark-pro": {"version": "v3.1", "chat_domain": "generalv3"}, "spark-pro-128k": {"version": "pro-128k", "chat_domain": "pro-128k"}, "spark-max": {"version": "v3.5", "chat_domain": "generalv3.5"},