mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-30 00:32:50 +00:00
perf: extract
This commit is contained in:
parent
6f37d7b460
commit
25dc45c398
|
|
@ -70,7 +70,7 @@ export async function dispatchContentExtract({
|
|||
parameters: {
|
||||
type: 'object',
|
||||
properties,
|
||||
required: extractKeys.map((item) => item.key)
|
||||
required: extractKeys.filter((item) => item.required).map((item) => item.key)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -108,7 +108,6 @@ export async function dispatchContentExtract({
|
|||
}
|
||||
}
|
||||
}
|
||||
console.log(arg, '====');
|
||||
|
||||
const tokens = response.data.usage?.total_tokens || 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue