thay doi ui chebichat

This commit is contained in:
quangdn-ght
2025-06-25 14:57:12 +07:00
parent e3fc9eef8f
commit cdeb27891b
29 changed files with 621 additions and 1129 deletions

View File

@@ -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) => {