Private
Public Access
0
0
This commit is contained in:
2026-06-03 14:13:40 -04:00
parent 2e5e985d6d
commit ea8061b418
6 changed files with 210 additions and 122 deletions
+3 -3
View File
@@ -2600,7 +2600,7 @@ def run_subagent_summarization(file_path: str, content: str, is_code: bool, outl
)
)
return resp.text or ""
elif p == "anthropic":
elif _provider == "anthropic":
_ensure_anthropic_client()
if _anthropic_client:
resp = _anthropic_client.messages.create(
@@ -2609,7 +2609,7 @@ def run_subagent_summarization(file_path: str, content: str, is_code: bool, outl
messages=[{"role": "user", "content": prompt}]
)
return "".join([b.text for b in resp.content if hasattr(b, "text") and b.text])
elif p == "deepseek":
elif _provider == "deepseek":
creds = _load_credentials()
api_key = creds.get("deepseek", {}).get("api_key")
if not api_key: return "ERROR: DeepSeek API key missing"
@@ -2625,7 +2625,7 @@ def run_subagent_summarization(file_path: str, content: str, is_code: bool, outl
return r.json()["choices"][0]["message"]["content"]
except Exception as e:
return f"ERROR: DeepSeek summarization failed: {e}"
elif p == "gemini_cli":
elif _provider == "gemini_cli":
# Using the adapter for a one-off call
adapter = GeminiCliAdapter(binary_path="gemini")
resp_data = adapter.send(prompt, model=_model)