mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-04 04:07:47 +08:00
fix: resolve header.uid' length must be less or equal than 32 on Spark V1.5 (#2983)
This commit is contained in:
parent
815beac356
commit
13694293e3
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user