From fc669f09f871ca459d2d1c89a40b67126ea5f5d0 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:55:44 +0800 Subject: [PATCH] fix import error --- unilabos/app/web/client.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/unilabos/app/web/client.py b/unilabos/app/web/client.py index 0a9714ac..91d19a7c 100644 --- a/unilabos/app/web/client.py +++ b/unilabos/app/web/client.py @@ -10,7 +10,7 @@ from typing import List, Dict, Any, Optional import requests from unilabos.utils.log import info -from unilabos.config.config import MQConfig, HTTPConfig, BasicConfig +from unilabos.config.config import HTTPConfig, BasicConfig from unilabos.utils import logger @@ -30,11 +30,8 @@ class HTTPClient: self.auth = auth else: auth_secret = BasicConfig.auth_secret() - if auth_secret: - self.auth = auth_secret - info(f"正在使用ak sk作为授权信息 {auth_secret}") - else: - self.auth = MQConfig.lab_id + self.auth = auth_secret + info(f"正在使用ak sk作为授权信息:[{auth_secret}]") info(f"HTTPClient 初始化完成: remote_addr={self.remote_addr}") def resource_edge_add(self, resources: List[Dict[str, Any]], database_process_later: bool) -> requests.Response: