├── .dockerignore ├── .env.example ├── .github └── workflows │ └── CI.yml ├── Dockerfile ├── README.md ├── README_en.md ├── docker-compose.yml ├── requirements.txt ├── run.bat ├── run.sh ├── src ├── __init__.py ├── api │ ├── __init__.py │ ├── openai_routes.py │ └── routes.py ├── auth │ ├── __init__.py │ └── auth.py ├── config │ ├── __init__.py │ └── settings.py ├── database │ ├── __init__.py │ └── token_db.py ├── main.py ├── models │ ├── __init__.py │ └── data_models.py ├── oauth │ ├── __init__.py │ ├── oauth_manager.py │ └── token_manager.py ├── utils │ ├── __init__.py │ ├── helpers.py │ ├── timezone_utils.py │ ├── tool_executor.py │ ├── tool_registry.py │ └── version_manager.py └── web │ ├── __init__.py │ └── web_routes.py ├── static ├── script.js └── style.css └── templates └── index.html /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/README.md -------------------------------------------------------------------------------- /README_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/README_en.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/requirements.txt -------------------------------------------------------------------------------- /run.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/run.bat -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/run.sh -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Source code package for Qwen Code API Server 3 | """ -------------------------------------------------------------------------------- /src/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/api/__init__.py -------------------------------------------------------------------------------- /src/api/openai_routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/api/openai_routes.py -------------------------------------------------------------------------------- /src/api/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/api/routes.py -------------------------------------------------------------------------------- /src/auth/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/auth/__init__.py -------------------------------------------------------------------------------- /src/auth/auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/auth/auth.py -------------------------------------------------------------------------------- /src/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/config/__init__.py -------------------------------------------------------------------------------- /src/config/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/config/settings.py -------------------------------------------------------------------------------- /src/database/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/database/__init__.py -------------------------------------------------------------------------------- /src/database/token_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/database/token_db.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/main.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/models/__init__.py -------------------------------------------------------------------------------- /src/models/data_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/models/data_models.py -------------------------------------------------------------------------------- /src/oauth/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/oauth/__init__.py -------------------------------------------------------------------------------- /src/oauth/oauth_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/oauth/oauth_manager.py -------------------------------------------------------------------------------- /src/oauth/token_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/oauth/token_manager.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/__init__.py -------------------------------------------------------------------------------- /src/utils/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/helpers.py -------------------------------------------------------------------------------- /src/utils/timezone_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/timezone_utils.py -------------------------------------------------------------------------------- /src/utils/tool_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/tool_executor.py -------------------------------------------------------------------------------- /src/utils/tool_registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/tool_registry.py -------------------------------------------------------------------------------- /src/utils/version_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/utils/version_manager.py -------------------------------------------------------------------------------- /src/web/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/web/__init__.py -------------------------------------------------------------------------------- /src/web/web_routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/src/web/web_routes.py -------------------------------------------------------------------------------- /static/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/static/script.js -------------------------------------------------------------------------------- /static/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/static/style.css -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Water008/QwenAPI/HEAD/templates/index.html --------------------------------------------------------------------------------