version 3.0

This commit is contained in:
2026-05-05 17:19:44 +08:00
parent fa5637b5ca
commit dd4018a4d8
3 changed files with 120 additions and 194 deletions
+1
View File
@@ -88,6 +88,7 @@ async function classifyTransactions(transactionIds) {
temperature: 0.3, max_tokens: 2000,
});
const content = response.choices[0].message.content;
console.log(content)
const jsonMatch = content.match(/\[[\s\S]*\]/);
if (jsonMatch) {
const results = JSON.parse(jsonMatch[0]);