diff --git a/llmcore.py b/llmcore.py index b1226fcfd..6f3d2d3a3 100644 --- a/llmcore.py +++ b/llmcore.py @@ -775,7 +775,7 @@ def raw_ask(self, messages): tools = [dict(t) for t in claude_tools]; tools[-1]["cache_control"] = {"type": "ephemeral"} payload["tools"] = tools else: print("[ERROR] No tools provided for this session.") - payload['system'] = [{"type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude.", "cache_control": {"type": "ephemeral"}}] + payload['system'] = [{"type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude." if self.fake_cc_system_prompt else "You are a capable AI assistant running in GenericAgent framework.", "cache_control": {"type": "ephemeral"}}] #payload['system'][0]['text'] += f"\nPlatform: {sys.platform}" if self.system: if self.fake_cc_system_prompt: payload["system"].append({"type": "text", "text": self.system})