Spaces:
Running
Running
nacho commited on
Commit ·
c9bf621
1
Parent(s): 466f6e2
refactor: 合并 start.py 到 run.py,移除重复入口
Browse files
README.md
CHANGED
|
@@ -149,8 +149,7 @@ ds2api-browser/
|
|
| 149 |
├── account_manager.py # 账号池管理
|
| 150 |
├── config.py # 配置管理
|
| 151 |
├── proxy.py # 多协议代理(Claude/Gemini/Ollama)
|
| 152 |
-
├──
|
| 153 |
-
├── run.py # 运行入口
|
| 154 |
├── .env.example # 环境变量模板
|
| 155 |
├── requirements.txt # 依赖列表
|
| 156 |
└── README.md # 本文档
|
|
|
|
| 149 |
├── account_manager.py # 账号池管理
|
| 150 |
├── config.py # 配置管理
|
| 151 |
├── proxy.py # 多协议代理(Claude/Gemini/Ollama)
|
| 152 |
+
├── run.py # 启动入口
|
|
|
|
| 153 |
├── .env.example # 环境变量模板
|
| 154 |
├── requirements.txt # 依赖列表
|
| 155 |
└── README.md # 本文档
|
run.py
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import os
|
| 3 |
import sys
|
| 4 |
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""DS2API Browser 启动入口。
|
| 3 |
+
|
| 4 |
+
账号和密钥从 .env 文件自动加载,格式见 .env.example。
|
| 5 |
+
"""
|
| 6 |
import os
|
| 7 |
import sys
|
| 8 |
|
start.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""Quick start script for DS2API Browser.
|
| 3 |
-
|
| 4 |
-
Accounts and keys are loaded from .env file automatically by main.py.
|
| 5 |
-
See .env.example for the expected format.
|
| 6 |
-
"""
|
| 7 |
-
import os
|
| 8 |
-
import sys
|
| 9 |
-
|
| 10 |
-
sys.path.insert(0, os.path.dirname(__file__))
|
| 11 |
-
|
| 12 |
-
from main import main
|
| 13 |
-
|
| 14 |
-
if __name__ == "__main__":
|
| 15 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|