Added the ability to check the balance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-03-27 02:27:37 +03:00
parent b9d60aee20
commit f64c5f8cf7
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -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);
}) })