perf: remove request invalid field (#6283)

This commit is contained in:
Archer
2026-01-18 23:59:15 +08:00
committed by GitHub
parent 15f8e70453
commit b7a10bff2b
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -230,6 +230,9 @@ export const loadRequestMessages = async ({
const result = (
await Promise.all(
content.map(async (item) => {
// Remove system filed
delete item.key;
if (item.type === 'text') {
// If it is array, not need to parse image
if (item.text) return item;