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.
This commit is contained in:
parent
1f61a0d1ec
commit
538d7623be
1 changed files with 1 additions and 4 deletions
|
|
@ -113,9 +113,6 @@ 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue