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;