更新20260201-1
This commit is contained in:
@@ -26,7 +26,7 @@ PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(PROJECT_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
from api.client import APIClient
|
||||
from api.recording_client import build_recording_client
|
||||
from api.endpoint_routing import derive_former_endpoint as derive_former_endpoint_shared
|
||||
from config.settings import AppConfig
|
||||
from models.parsers import TypeParser
|
||||
@@ -265,13 +265,7 @@ def main() -> int:
|
||||
if not cfg["api"].get("token"):
|
||||
raise SystemExit("缺少 api.token(请在 .env 配置 API_TOKEN 或 FICOO_TOKEN)")
|
||||
|
||||
client = APIClient(
|
||||
base_url=cfg["api"]["base_url"],
|
||||
token=cfg["api"]["token"],
|
||||
timeout=int(cfg["api"].get("timeout_sec") or 20),
|
||||
retry_max=int(cfg["api"].get("retries", {}).get("max_attempts") or 3),
|
||||
headers_extra=cfg["api"].get("headers_extra") or {},
|
||||
)
|
||||
client = build_recording_client(cfg, task_code="FETCH_TEST_COMPARE")
|
||||
|
||||
common_params = cfg["api"].get("params", {}) or {}
|
||||
if not isinstance(common_params, dict):
|
||||
|
||||
Reference in New Issue
Block a user