From 2b0127c5b5cb989efd4b9f22dc1f4a4d656207f8 Mon Sep 17 00:00:00 2001 From: franktrue Date: Wed, 10 May 2023 18:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E7=BD=B2=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 ++++---- api.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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