Perf ui detail (#2775)

* perf: tool response tip

* perf: image extract

* perf: user question tool desc

* fix: simple mode load app module

* perf: simple mode plugin version

* perf: share page reload

* refresh simple mode data
This commit is contained in:
Archer
2024-09-24 18:04:11 +08:00
committed by GitHub
parent 434c03c955
commit afd2c394d8
14 changed files with 43 additions and 60 deletions

View File

@@ -178,6 +178,11 @@ export const loadRequestMessages = async ({
});
});
// Too many images or too long text, return text
if (httpsImages.length > 4 || input.length > 1000) {
return [{ type: 'text', text: input || '' }];
}
// 添加原始input作为文本
result.push({ type: 'text', text: input });
return result;