From 538d7623beff19c5cc1b4b6670c2b3ef0ec5fd82 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 3 Feb 2026 16:30:47 +0100 Subject: [PATCH] refactor(bot): remove unused max-tokens argument handling - Simplified the `call_claude` function by removing the unused `MAX_TOKENS` argument handling. - Ensures cleaner and more maintainable command construction. --- systems/x86_64-linux/mx/nextcloud-claude-bot/bot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/systems/x86_64-linux/mx/nextcloud-claude-bot/bot.py b/systems/x86_64-linux/mx/nextcloud-claude-bot/bot.py index 25cb550..da1eb17 100644 --- a/systems/x86_64-linux/mx/nextcloud-claude-bot/bot.py +++ b/systems/x86_64-linux/mx/nextcloud-claude-bot/bot.py @@ -112,10 +112,7 @@ def build_prompt(user_id: str, message: str) -> str: async def call_claude(prompt: str) -> str: """Call Claude CLI and return response.""" cmd = [CLAUDE_PATH, "--print"] - - if MAX_TOKENS: - cmd.extend(["--max-tokens", str(MAX_TOKENS)]) - + log.info(f"Calling Claude: {' '.join(cmd)}") try: