Grt1228 / chatgpt-java

ChatGPT Java SDK支持流式输出、Gpt插件、联网。支持OpenAI官方所有接口。ChatGPT的Java客户端。OpenAI GPT-3.5-Turb GPT-4 Api Client for Java
https://chatgpt-java.unfbx.com
Apache License 2.0
3.3k stars 810 forks source link

这个方法是不是不行了啊v1/dashboard/billing/usage #194

Closed shican1234 closed 9 months ago

shican1234 commented 1 year ago

[main] ERROR com.unfbx.chatgpt.interceptor.OpenAiResponseInterceptor - --------> 请求异常:{ "error": { "message": "Your request to 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 key type: secret.", "type": "server_error", "param": null, "code": null } }

aaronyy9 commented 1 year ago

需要:SESSION_ID和ORG_ID 比如: -H "Authorization: Bearer $SESSION_ID" -H 'Openai-Organization: $ORG_ID'

Grt1228 commented 1 year ago

@shican1234 谢谢反馈。这个接口可能被官方禁用了。晚点再看下是否有其他途径