From c1f723afc5da3d52c9f8b8b74ddf908345de4ea6 Mon Sep 17 00:00:00 2001 From: zhangwen Date: Sat, 9 May 2026 10:11:34 +0800 Subject: [PATCH] 2 --- deepseekstart.py | 9 +- kimi_tokens.db | Bin 24576 -> 24576 bytes kimistart.py | 18 +-- login/kimi_auto_login.py | 25 ++-- login/kimi_auto_login_haozhu.py | 266 ++++++++++++++++++++++++++++++++++++++++ mitastart.py | 8 ++ utlit/update_db.py | 4 +- 7 files changed, 308 insertions(+), 22 deletions(-) create mode 100644 login/kimi_auto_login_haozhu.py diff --git a/deepseekstart.py b/deepseekstart.py index 5087f38..ca5197c 100644 --- a/deepseekstart.py +++ b/deepseekstart.py @@ -283,6 +283,9 @@ class DeepSeekChatClient: "search_enabled": search_enabled, "client_stream_id": client_stream_id + "-3e910d848b6140d5", } + payload = {"chat_session_id": chat_session_id.get("id"), "parent_message_id": None, + "model_type": "default", "prompt": prompt, "ref_file_ids": [], "thinking_enabled": False, + "search_enabled": True, "preempt": False} # 5) 发送SSE请求 with requests.post( @@ -299,7 +302,7 @@ class DeepSeekChatClient: if not raw: continue line = raw.strip() - # print(line) + print(line) data_str = line[6:] if line.startswith("data: ") else line if data_str == "[DONE]": @@ -411,7 +414,7 @@ class Start: thinking_enabled=True, search_enabled=True, ) - if thinking == '': + if answer == '': print('异常结果', ai_search_result_list, answer, thinking) return False @@ -440,7 +443,7 @@ class Start: post_resp = self.tools.post_task(result) # print('\n') # print('\n') - print(result) + print(str(result)[:500]) logger.info(f"任务 {task_id} 提交返回: {post_resp}") return result diff --git a/kimi_tokens.db b/kimi_tokens.db index d409df2546c829334d7cf386be8027e1d91ae481..cea9cb33d8c1ebd70e34c87d297ea9b9a216d40b 100644 GIT binary patch delta 188 zcmZoTz}RqraRZxy&?aW4?F^e(_VBp!DRFdjWw5Q8SU78QgV0q*8%qTP11nQQD^nvQ z10yqC15;fCa|Ht