Add missing code: use_context=False

This commit is contained in:
kkan9ma
2025-05-22 13:32:20 +09:00
parent cc686ef26d
commit facfb5f46b

View File

@ -102,7 +102,7 @@ class TokenHandler:
import anthropic
from pr_agent.algo import MAX_TOKENS
client = anthropic.Anthropic(api_key=get_settings().get('anthropic.key'))
client = anthropic.Anthropic(api_key=get_settings(use_context=False).get('anthropic.key'))
max_tokens = MAX_TOKENS[get_settings().config.model]
if len(patch.encode('utf-8')) > self.CLAUDE_MAX_CONTENT_SIZE: