From 3545fc833be5d99d48bc3f28fa0f9e385c38a4a4 Mon Sep 17 00:00:00 2001 From: leavesster <11785335+leavesster@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:14:40 +0800 Subject: [PATCH 1/2] feat: add fusion api url --- oocana/oocana/context.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oocana/oocana/context.py b/oocana/oocana/context.py index ff07bb0..76d7977 100644 --- a/oocana/oocana/context.py +++ b/oocana/oocana/context.py @@ -304,6 +304,14 @@ def node_id(self) -> str: return self.__block_info.stacks[-1].get("node_id", "unknown") else: return "none" + + @property + def oomol_fusion_api_url(self) -> str: + """ + get the oomol fusion api url from the context. + :return: the oomol fusion api url + """ + return os.getenv("OOMOL_FUSION_API_URL", "") @property def oomol_llm_env(self) -> OOMOL_LLM_ENV: From 66c16be9e0980eef49273a64fff917e87a2f2dbd Mon Sep 17 00:00:00 2001 From: leavesster <11785335+leavesster@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:18:20 +0800 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- oocana/oocana/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oocana/oocana/context.py b/oocana/oocana/context.py index 76d7977..0784dcc 100644 --- a/oocana/oocana/context.py +++ b/oocana/oocana/context.py @@ -308,8 +308,8 @@ def node_id(self) -> str: @property def oomol_fusion_api_url(self) -> str: """ - get the oomol fusion api url from the context. - :return: the oomol fusion api url + Get the OOMOL Fusion API URL from the context. + :return: The OOMOL Fusion API URL. """ return os.getenv("OOMOL_FUSION_API_URL", "")