Skip to content

Commit

Permalink
fix: resolve header.uid' length must be less or equal than 32 on Spar…
Browse files Browse the repository at this point in the history
…k V1.5 (#2983)
  • Loading branch information
Kennytian authored Mar 27, 2024
1 parent 815beac commit 1369429
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/core/model_runtime/model_providers/spark/llm/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def gen_params(self, messages: list, user_id: str,
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": {
Expand Down

0 comments on commit 1369429

Please sign in to comment.