File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -775,11 +775,11 @@ export class chatgpt extends plugin {
775
775
776
776
async totalAvailable ( e ) {
777
777
if ( ! Config . apiKey ) {
778
- this . reply ( '当前未配置OpenAI API key,请在插件配置文件config /config.js中配置。若使用免费的API3则无需关心计费。' )
778
+ this . reply ( '当前未配置OpenAI API key,请在锅巴面板或插件配置文件config /config.js中配置。若使用免费的API3则无需关心计费。' )
779
779
return false
780
780
}
781
781
// 查询OpenAI API剩余试用额度
782
- fetch ( 'https://api.openai.com /dashboard/billing/credit_grants' , {
782
+ fetch ( ` ${ Config . openAiBaseUrl } /dashboard/billing/credit_grants` , {
783
783
method : 'GET' ,
784
784
headers : {
785
785
'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const defaultConfig = {
14
14
cacheUrl : 'https://content.alcedogroup.com' ,
15
15
cacheEntry : false ,
16
16
apiKey : '' ,
17
- openAiBaseUrl : " https://api.openai.com" ,
17
+ openAiBaseUrl : ' https://api.openai.com' ,
18
18
drawCD : 30 ,
19
19
model : '' ,
20
20
temperature : 0.8 ,
You can’t perform that action at this time.
0 commit comments