Added the ability to check the balance
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b9d60aee20
commit
f64c5f8cf7
@ -44,7 +44,7 @@ public class BalanceUnit implements PersonUnitConfiguration {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.answer(() -> {
|
.answer(() -> {
|
||||||
final TotalUsageResponse totalUsage = openAIClient.getTotalUsage();
|
final TotalUsageResponse totalUsage = openAIClient.getTotalUsageInThisMount();
|
||||||
final double balance = totalUsage.getTotalUsage() / 100;
|
final double balance = totalUsage.getTotalUsage() / 100;
|
||||||
return boxAnswer("Used in this month: $" + balance);
|
return boxAnswer("Used in this month: $" + balance);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user