mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +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