This commit is contained in:
2025-08-31 06:33:26 +09:00
parent 04e4986374
commit 67328c9ec4

View File

@@ -102,9 +102,13 @@ export async function aiSignal(bars) {
}, },
], ],
}); });
console.log(Date.now()) try {
const msg = completion.choices[0].message.content console.log(Date.now())
logger.debug(msg); const msg = completion.choices[0].message.content
const sig = JSON.parse(msg) logger.debug(msg);
return sig; const sig = JSON.parse(msg)
return sig;
} catch(e) {
return {side : 'HOLD'}
}
} }