From 99b2cdddf258bcdba196a99a45321c6e8c343bd2 Mon Sep 17 00:00:00 2001 From: pt Date: Thu, 15 Jun 2023 12:04:46 +0800 Subject: [PATCH] :recycle: --- .../com/plexpt/chatgpt/ConsoleChatGPT.java | 18 +++++++++--------- src/test/java/com/plexpt/chatgpt/Test.java | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/plexpt/chatgpt/ConsoleChatGPT.java b/src/main/java/com/plexpt/chatgpt/ConsoleChatGPT.java index 3ce561c..3cca484 100644 --- a/src/main/java/com/plexpt/chatgpt/ConsoleChatGPT.java +++ b/src/main/java/com/plexpt/chatgpt/ConsoleChatGPT.java @@ -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) { diff --git a/src/test/java/com/plexpt/chatgpt/Test.java b/src/test/java/com/plexpt/chatgpt/Test.java index 85eb10a..a4382be 100644 --- a/src/test/java/com/plexpt/chatgpt/Test.java +++ b/src/test/java/com/plexpt/chatgpt/Test.java @@ -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