mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
fix: 修复 ChatGPT 文本响应被截断的问题 (closes #19)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user