This commit is contained in:
Sakurasan
2023-05-28 22:59:58 +08:00
parent ae1670b9b8
commit 631073fed0
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ wget https://github.com/mirrors2/opencatd-open/raw/main/docker/docker-compose.ym
- [Fly.io](https://fly.io/)
- 或者其他
修改openai的endpoint地址使用任意上游地址(套娃代理)
- 设置环境变量 openai_endpoint
# License
[GNU General Public License v3.0](License)

View File

@@ -93,7 +93,7 @@ type ChatCompletionResponse struct {
func init() {
if openai_endpoint := os.Getenv("openai_endpoint"); openai_endpoint != "" {
log.Println("replace %s to %s", baseUrl, openai_endpoint)
log.Println(fmt.Sprintf("replace %s to %s", baseUrl, openai_endpoint))
baseUrl = openai_endpoint
}
}