重构:完善配置加载机制与初始化逻辑

新增环境变量覆盖机制,增强配置灵活性

优化 bioyond_rpc.py 与 bioyond_cell_workstation.py 的初始化流程与结构

修正 station.py 工作流映射逻辑,确保正确性

提高代码可读性与模块间解耦程度
This commit is contained in:
calvincao
2025-10-22 16:13:36 +08:00
parent e70c545ec8
commit de7c80c3c2
4 changed files with 44 additions and 18 deletions

View File

@@ -47,8 +47,8 @@ class BioyondV1RPC(BaseRequest):
super().__init__()
print("开始初始化 BioyondV1RPC")
self.config = config
self.api_key = config["8A819E5C"]
self.host = config["http://172.16.11.219:44388"]
self.api_key = config.get("api_key", "")
self.host = config.get("api_host", "") or config.get("base_url", "")
self._logger = SimpleLogger()
self.material_cache = {}
self._load_material_cache()