We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 913c1b7 commit dcd47bcCopy full SHA for dcd47bc
src/backend/src/modules/puterai/AIChatService.js
@@ -114,7 +114,8 @@ class AIChatService extends BaseService {
114
await this.db.insert('ai_usage', values);
115
116
// USD cost from microcents
117
- const cost_usd = values.cost / 1000000;
+ const cost_usc = values.cost / 1000000;
118
+ const cost_usd = cost_usc / 100;
119
120
// Add to TrackSpendingService
121
const svc_spending = this.services.get('spending');
0 commit comments