Skip to content

Commit

Permalink
♻️
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexPt committed Jun 15, 2023
1 parent 18f4bde commit 99b2cdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/plexpt/chatgpt/ConsoleChatGPT.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ public static void main(String[] args) {

}

System.out.println("Inquiry balance...");
System.out.println("查询余额中...");
BigDecimal balance = getBalance(key);
System.out.println("API KEY balance: " + balance.toPlainString());

if (!NumberUtil.isGreater(balance, BigDecimal.ZERO)) {
System.out.println("API KEY 余额不足: ");
return;
}
// System.out.println("Inquiry balance...");
// System.out.println("查询余额中...");
// BigDecimal balance = getBalance(key);
// System.out.println("API KEY balance: " + balance.toPlainString());
//
// if (!NumberUtil.isGreater(balance, BigDecimal.ZERO)) {
// System.out.println("API KEY 余额不足: ");
// return;
// }


while (true) {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/plexpt/chatgpt/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void before() {
.build()
.init();

CreditGrantsResponse response = chatGPT.creditGrants();
log.info("余额:{}", response.getTotalAvailable());
// CreditGrantsResponse response = chatGPT.creditGrants();
// log.info("余额:{}", response.getTotalAvailable());
}

@org.junit.Test
Expand Down

0 comments on commit 99b2cdd

Please sign in to comment.