mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
thay doi ui chebichat
This commit is contained in:
@@ -204,9 +204,9 @@ export class QwenApi implements LLMApi {
|
||||
// Accumulate and render result as it streams
|
||||
onUpdate: (() => {
|
||||
let accumulated = "";
|
||||
return (chunk: string) => {
|
||||
return (chunk: string, fetchText?: string) => {
|
||||
accumulated += chunk;
|
||||
options.onUpdate?.(accumulated, chunk);
|
||||
options.onUpdate?.(accumulated, fetchText ?? "");
|
||||
};
|
||||
})(),
|
||||
onFinish: (final: string, res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user