From cb0fa7d7e3df3e471ef8b689800264f13e8ef467 Mon Sep 17 00:00:00 2001 From: rogersun Date: Tue, 14 Jul 2026 15:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0deepseek=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/utils/show_prompt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ai/utils/show_prompt.py b/ai/utils/show_prompt.py index bb4cea9..067c14b 100644 --- a/ai/utils/show_prompt.py +++ b/ai/utils/show_prompt.py @@ -251,6 +251,8 @@ class ShowAI: # self.general_prompt() # 与AI开始对话 print(f"与{self.ai_model_name}开始对话") + ts = str(int(datetime.datetime.timestamp(datetime.datetime.now()))) + user_id = f"{self.cinema.zz_code}-{ts}" if get_runtime_val('deepseek_cache') == 0 else self.cinema.zz_code response = self.client.chat.completions.create( model=self.ai_model_name, messages=[ @@ -261,7 +263,7 @@ class ShowAI: stream=False, reasoning_effort="high", extra_body={"thinking": {"type": "enabled"}, - "user_id": self.cinema.zz_code}, + "user_id": user_id}, response_format={ 'type': 'json_object' }