fk ai
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user