diff --git a/.drone.yml b/.drone.yml index 5101f15..e9b0621 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,13 +15,13 @@ steps: settings: user: root key: - from_secret: ssh_key + from_secret: kelvin_ssh_key hosts: # 多个ip使用,隔开 - from_secret: ssh_host + from_secret: kelvin_ssh_host # 来源目录 source: deploy/ # 目标服务器目录 - target: /mnt/data/wwwroot/api2gpt/mid + target: /data/wwwroot/api2gpt/mid script: - - cd /mnt/data/wwwroot/api2gpt/mid + - cd /data/wwwroot/api2gpt/mid - docker-compose up -d --build \ No newline at end of file diff --git a/api.go b/api.go index 4d6e567..2fe8c25 100644 --- a/api.go +++ b/api.go @@ -81,7 +81,7 @@ func balanceConsumption(key string, model string, prompt_tokens int, completion_ // 构造post请求的body reqBody := bytes.NewBuffer(jsonData) - url := "http://121.4.100.155:8080/other/usageRecord" + url := "http://172.17.0.1:8080/other/usageRecord" req2, err := http.NewRequest("POST", url, reqBody) // 设置http请求的header