diff --git a/README.md b/README.md index 9d976172..6b561496 100644 --- a/README.md +++ b/README.md @@ -431,10 +431,16 @@ Run the following command to login (OpenAI OAuth on port 1455): docker run --rm -p 1455:1455 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --codex-login ``` -Run the following command to login (Claude OAuth on port 54545): +Run the following command to logi (Claude OAuth on port 54545): ```bash -docker run --rm -p 54545:54545 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --claude-login +docker run -rm -p 54545:54545 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --claude-login +``` + +Run the following command to login (Qwen OAuth): + +```bash +docker run -it -rm -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --qwen-login ``` Run the following command to start the server: diff --git a/README_CN.md b/README_CN.md index e9fe764e..1809e8ea 100644 --- a/README_CN.md +++ b/README_CN.md @@ -433,6 +433,13 @@ docker run --rm -p 1455:1455 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya docker run --rm -p 54545:54545 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --claude-login ``` +运行以下命令进行登录(Qwen OAuth): + +```bash +docker run -it -rm -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latest /CLIProxyAPI/CLIProxyAPI --qwen-login +``` + + 运行以下命令启动服务器: ```bash diff --git a/internal/cmd/run.go b/internal/cmd/run.go index af0b40c2..9e741d15 100644 --- a/internal/cmd/run.go +++ b/internal/cmd/run.go @@ -263,6 +263,7 @@ func StartService(cfg *config.Config, configPath string) { for { select { case <-ctxRefresh.Done(): + log.Debugf("refreshing tokens stopped...") return case <-ticker.C: checkAndRefresh()