mirror of
https://github.com/lanqian528/chat2api.git
synced 2026-06-19 21:05:19 +08:00
This commit is contained in:
parent
73b8e2b165
commit
1fd8f2045b
2
.github/workflows/build_docker.yml
vendored
2
.github/workflows/build_docker.yml
vendored
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user