Closed Seidko closed 1 year ago
https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L24-L27
L25 这里已经通过 config 将 endpoint 传进去了
L25
config
endpoint
https://github.com/satorijs/satori/blob/1a7cddfade8aecd13707bd8b1ec2f907ba6d6f67/packages/axios/src/index.ts#L154
cordis-axios 这里也使用了 L25 传入的 endpoint
cordis-axios
https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L71 https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L151
这里的this._endpoint +是完全多余的,导致host被识别成了 chat.openai.comhttps
this._endpoint +
chat.openai.comhttps
已发布 1.3.2
gook good to me, danke
https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L24-L27
L25
这里已经通过config
将endpoint
传进去了https://github.com/satorijs/satori/blob/1a7cddfade8aecd13707bd8b1ec2f907ba6d6f67/packages/axios/src/index.ts#L154
cordis-axios
这里也使用了L25
传入的endpoint
https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L71 https://github.com/koishijs/chatgpt-bot/blob/38354f1adfc1d556368b2d05c894683ed4e0b95b/src/api.ts#L151
这里的
this._endpoint +
是完全多余的,导致host被识别成了chat.openai.comhttps