version 3.0
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user