fix: 修复 ChatGPT 文本响应被截断的问题 (closes #19)

This commit is contained in:
foxhui
2026-03-05 03:08:39 +08:00
Unverified
parent 6d757d3ce1
commit d5e0d92598
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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
+1 -1
View File
@@ -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;