Commit 25dc45c3 by archer

perf: extract

parent 6f37d7b4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment