mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
perf: remove request invalid field (#6283)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user