mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
docs: update mj-plus api domain
This commit is contained in:
parent
db6ed84451
commit
a80cd3848e
@ -74,7 +74,7 @@ WeChatBot = false
|
|||||||
|
|
||||||
[[MjPlusConfigs]]
|
[[MjPlusConfigs]]
|
||||||
Enabled = false
|
Enabled = false
|
||||||
ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改
|
ApiURL = "https://api.chat-plus.net"
|
||||||
CdnURL = "" # CND 加速的 URL,如果有的话就设置
|
CdnURL = "" # CND 加速的 URL,如果有的话就设置
|
||||||
Mode = "fast" # MJ 绘画模式,可选值 relax/fast/turbo
|
Mode = "fast" # MJ 绘画模式,可选值 relax/fast/turbo
|
||||||
ApiKey = "sk-xxx"
|
ApiKey = "sk-xxx"
|
||||||
|
@ -90,8 +90,10 @@ func (c *Client) Imagine(task types.MjTask) (ImageRes, error) {
|
|||||||
SetErrorResult(&errRes).
|
SetErrorResult(&errRes).
|
||||||
Post(apiURL)
|
Post(apiURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if r.Body != nil {
|
||||||
errStr, _ := io.ReadAll(r.Body)
|
errStr, _ := io.ReadAll(r.Body)
|
||||||
logger.Errorf("API 返回:%s, API URL: %s", string(errStr), apiURL)
|
logger.Errorf("API 返回:%s, API URL: %s", string(errStr), apiURL)
|
||||||
|
}
|
||||||
return ImageRes{}, fmt.Errorf("请求 API 出错:%v", err)
|
return ImageRes{}, fmt.Errorf("请求 API 出错:%v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ WeChatBot = false
|
|||||||
|
|
||||||
[[MjPlusConfigs]]
|
[[MjPlusConfigs]]
|
||||||
Enabled = false
|
Enabled = false
|
||||||
ApiURL = "https://api.chatgpt-plus.net" # 目前暂时不支持更改
|
ApiURL = "https://api.chat-plus.net"
|
||||||
CdnURL = "" # CND 加速的 URL,如果有的话就设置
|
CdnURL = "" # CND 加速的 URL,如果有的话就设置
|
||||||
Mode = "fast" # MJ 绘画模式,可选值 relax/fast/turbo
|
Mode = "fast" # MJ 绘画模式,可选值 relax/fast/turbo
|
||||||
ApiKey = "sk-xxx"
|
ApiKey = "sk-xxx"
|
||||||
|
Loading…
Reference in New Issue
Block a user