From 08abc213fb29bad088b3660de91c09b2ed964d0d Mon Sep 17 00:00:00 2001 From: linyq Date: Mon, 19 May 2025 09:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E8=87=B30.6.2.4=EF=BC=8C=E5=B9=B6=E5=A2=9E=E5=BC=BA=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=AF=B4=E6=98=8E=E7=94=9F=E6=88=90=E5=92=8C=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E7=9A=84=E8=B0=83=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-release-generator.yml | 3 ++- .github/workflows/discord-release-notification.yml | 1 + project_version | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release-generator.yml b/.github/workflows/auto-release-generator.yml index 4473647..98b8a28 100644 --- a/.github/workflows/auto-release-generator.yml +++ b/.github/workflows/auto-release-generator.yml @@ -122,11 +122,12 @@ jobs: model="deepseek-ai/DeepSeek-V3", messages=[ {"role": "system", "content": "你是一个专业的软件发布说明生成助手。请根据提供的git提交信息,生成一个结构化的发布说明,包括新功能、改进、修复的bug等类别。使用中文回复。"}, - {"role": "user", "content": f"请根据以下git提交信息,生成一个版本{version}的发布说明,内容要言简意赅,相似的提交信息不要重复出现: \n\n{commits}"} + {"role": "user", "content": f"请根据以下git提交信息,生成一个版本{version}的发布说明,内容详细且完整,相似的提交信息不要重复出现: \n\n{commits}"} ], temperature=0.7, ) release_notes = response.choices[0].message.content + print(f"大模型总结的发布说明: \n{release_notes}") except Exception as e: print(f"Error calling OpenAI API: {e}") release_notes = f"# 版本 {version} 发布\n\n## 更新内容\n\n" diff --git a/.github/workflows/discord-release-notification.yml b/.github/workflows/discord-release-notification.yml index d236780..46b76a9 100644 --- a/.github/workflows/discord-release-notification.yml +++ b/.github/workflows/discord-release-notification.yml @@ -81,6 +81,7 @@ jobs: temperature=0.7, ) enhanced_notes = response.choices[0].message.content + print(f"大模型润色后的发布说明: \n{enhanced_notes}") except Exception as e: print(f"Error calling OpenAI API: {e}") enhanced_notes = release_notes # 如果API调用失败,使用原始发布说明 diff --git a/project_version b/project_version index b5a6781..9ee8428 100644 --- a/project_version +++ b/project_version @@ -1 +1 @@ -0.6.2.3 \ No newline at end of file +0.6.2.4 \ No newline at end of file