From 30f8531ff2e18a53bced2662916c51fe602aa5fd Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 10 Mar 2025 11:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=80=BB=E7=BB=93=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=98=BE=E7=A4=BAtokens=E6=B6=88=E8=80=97=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 9 ++++----- message_summary/message_summary_4o.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config.yaml b/config.yaml index 4daf893..d6c12a3 100644 --- a/config.yaml +++ b/config.yaml @@ -114,11 +114,10 @@ doubao: key: b8586595-eb81-483d-8e91-a35cc789729e api: https://ark.cn-beijing.volces.com/api/v3/chat/completions # 如果你不知道这是干嘛的,就不要改 model: doubao-1-5-lite-32k-250115 # - prompt: '你是一个信息归纳分析工程师,你根据提问会搜索相关资料。经过信息精炼之后返回内容。 - 请回复时以以下格式进行返回: - - 问题描述: - - 问题评价:分析问题的提出角度,如(财经、彩票、房产、股票、家居、教育、科技、社会、时尚、时政、体育、星座、游戏、娱乐)等 - - 总结:经过300个字以内的优化返回,返回内容请进行一定程度的结构化,方便快速阅读' # 根据需要对角色进行设定 + prompt: '你是一个信息归纳分析工程师,根据提问进行相关资料搜索,并经过精炼后返回内容。请根据以下格式进行返回: + - 问题描述[分析问题的提出角度,如(财经、彩票、房产、股票、家居、教育、科技、社会、时尚、时政、体育、星座、游戏、娱乐)等]: + - 总结:根据搜索的资料,对问题进行500字以内的结构化总结,确保内容清晰、简洁且有深度,便于快速阅读。分析的总结要具有逻辑性,突出关键点,并避免冗余信息。 + 请确保500字以内的总结能准确表达问题的背景、现状和可能的解决方案,以便读者迅速理解核心内容。' # 根据需要对角色进行设定 diff --git a/message_summary/message_summary_4o.py b/message_summary/message_summary_4o.py index 908396e..b8c9a9f 100644 --- a/message_summary/message_summary_4o.py +++ b/message_summary/message_summary_4o.py @@ -135,7 +135,7 @@ def message_summary(content): # 输出响应内容 print(response.status_code) - print(response.text) + print(response) return extract_content(response.text)