Closed zhutx closed 9 months ago
OpenAiClientTest.java:
@Test public void subscription() { Subscription subscription = v2.subscription(); log.info("用户名:{}", subscription.getAccountName()); log.info("用户总余额(美元):{}", subscription.getHardLimitUsd()); log.info("更多信息看Subscription类"); } @Test public void billingUsage() { LocalDate start = LocalDate.of(2023, 10, 7); BillingUsage billingUsage = v2.billingUsage(start, LocalDate.now()); log.info("总使用金额(美分):{}", billingUsage.getTotalUsage()); log.info("更多信息看BillingUsage类"); }
返回都是类似: GET /v1/dashboard/billing/usage must be made with a session key (that is, it can only be made from the browser). You made it with the following
这些接口官方很早就禁用了
OpenAiClientTest.java:
返回都是类似: GET /v1/dashboard/billing/usage must be made with a session key (that is, it can only be made from the browser). You made it with the following