cuixiaodong il y a 1 an
Parent
commit
f98237ab7a
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      backend/Service/WechatService.py

+ 8 - 2
backend/Service/WechatService.py

@@ -328,7 +328,10 @@ class WechatService:
         waibu = {}
         waibuurl = "http://ai.raycos.net/api/v1/run/951e3ba4-c66a-496c-9497-7dbddc2647f8?stream=false"
         waibutweaks = {
-            "ChatInput-NYqTq": {},
+            "ChatInput-NYqTq": {
+                "sender": info.openid,
+                "sender_name": info.openid
+            },
             "Prompt-oVfSC": {},
             "ChatOutput-sA5Uc": {},
             "OllamaModel-UxNZ1": {},
@@ -347,7 +350,10 @@ class WechatService:
         neibu = {}
         neibuurl = "https://ai.raycos.net/api/v1/run/9263c538-2cd2-4c1b-8c9a-3bb986920d6d?stream=false"
         waibutweaks = {
-                "ChatInput-NYqTq": {},
+                "ChatInput-NYqTq": {
+                    "sender": info.openid,
+                    "sender_name": info.openid
+                },
                 "Prompt-oVfSC": {},
                 "ChatOutput-sA5Uc": {},
                 "SplitText-GvztW": {},