v1.4.2 fix bugs
Some checks are pending
Build Docker Image / main (push) Waiting to run

This commit is contained in:
lanqian528 2024-08-10 20:13:12 +08:00
parent 73b8e2b165
commit 1fd8f2045b
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ jobs:
images: lanqian528/chat2api
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=v1.4.1
type=raw,value=v1.4.2
- name: Build and push
uses: docker/build-push-action@v5

View File

@ -26,7 +26,7 @@
## 功能
### 最新版 v1.4.1
### 最新版 v1.4.2
> 已完成
> - [x] 流式、非流式传输

View File

@ -10,7 +10,7 @@ import chatgpt.globals as globals
def get_req_token(req_token):
if req_token in authorization_list:
if globals.token_list:
if len(globals.token_list) - len(globals.error_token_list) > 0:
globals.count += 1
globals.count %= len(globals.token_list)
while globals.token_list[globals.count] in globals.error_token_list:

View File

@ -46,7 +46,7 @@ proxy_url_list = proxy_url.split(',') if proxy_url else []
user_agents_list = user_agents.split(',') if user_agents else []
logger.info("-" * 60)
logger.info("Chat2Api v1.4.1 | https://github.com/lanqian528/chat2api")
logger.info("Chat2Api v1.4.2 | https://github.com/lanqian528/chat2api")
logger.info("-" * 60)
logger.info("Environment variables:")
logger.info("API_PREFIX: " + str(api_prefix))