Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: resolve header.uid' length must be less or equal than 32 on Spark V1.5 (#2983)

Kenny13694293e3ba
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 a4659454eed..4c8790141d2 100644
--- a/api/core/model_runtime/model_providers/spark/llm/_client.py
+++ b/api/core/model_runtime/model_providers/spark/llm/_client.py
@@ -148,7 +148,8 @@ class SparkLLMClient:
data = {
"header": {
"app_id": self.app_id,
- "uid": user_id
+ # resolve this error message => $.header.uid' length must be less or equal than 32
+ "uid": user_id[:32] if user_id else None
},
"parameter": {
"chat": {