removed anthropic from requirements, replaced sdk with direct rest call

This commit is contained in:
Niki Vihtola
2025-12-17 08:14:58 +02:00
parent afc842e165
commit 3a13161ec6
2 changed files with 0 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
"""Anthropic/Claude LLM provider.""" """Anthropic/Claude LLM provider."""
# import anthropic
from typing import Dict, List from typing import Dict, List
from .base import LLMProvider from .base import LLMProvider
from .prompts import COMPRESS_COMMIT_PROMPT, GENERATE_DAILY_PROMPT from .prompts import COMPRESS_COMMIT_PROMPT, GENERATE_DAILY_PROMPT
@@ -16,7 +15,6 @@ class AnthropicProvider(LLMProvider):
if not self.api_key: if not self.api_key:
raise ValueError("Anthropic API key not configured. Run: jrnl config set anthropic api_key YOUR_KEY") raise ValueError("Anthropic API key not configured. Run: jrnl config set anthropic api_key YOUR_KEY")
# self.client = anthropic.Anthropic(api_key=api_key)
self.model = config.get('model', 'claude-sonnet-4-5-20250929') self.model = config.get('model', 'claude-sonnet-4-5-20250929')
self.max_tokens_commit = config.get('max_tokens_commit', 200) self.max_tokens_commit = config.get('max_tokens_commit', 200)
self.max_tokens_daily = config.get('max_tokens_daily', 500) self.max_tokens_daily = config.get('max_tokens_daily', 500)

View File

@@ -1,2 +1 @@
anthropic>=0.39.0
requests>=2.31.0 requests>=2.31.0