From d5e0d92598a673e731b967071b73370bc82cdb31 Mon Sep 17 00:00:00 2001 From: foxhui Date: Thu, 5 Mar 2026 03:08:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ChatGPT=20=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=93=8D=E5=BA=94=E8=A2=AB=E6=88=AA=E6=96=AD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(closes=20#19)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ src/backend/adapter/chatgpt_text.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd42273..443a215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.5.5] - 2026-03-05 + +### 🐛 Fixed +- **适配器** + - 修复 ChatGPT 文本适配器响应被截断的问题 + + ## [3.5.4] - 2026-02-27 ### 🔄 Changed diff --git a/src/backend/adapter/chatgpt_text.js b/src/backend/adapter/chatgpt_text.js index 770907d..52a5aa6 100644 --- a/src/backend/adapter/chatgpt_text.js +++ b/src/backend/adapter/chatgpt_text.js @@ -198,7 +198,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) { } // patch 操作中的 append - if (data.o === 'patch' && Array.isArray(data.v)) { + if (Array.isArray(data.v)) { for (const patch of data.v) { if (patch.o === 'append' && patch.p === '/message/content/parts/0' && patch.v) { textContent += patch.v;