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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue