fix: changes to llm classes according to base

This commit is contained in:
Siddhant Rai
2024-04-15 19:47:24 +05:30
parent c1c69ed22b
commit 60a670ce29
6 changed files with 15 additions and 6 deletions

View File

@@ -4,9 +4,10 @@ from application.core.settings import settings
class AnthropicLLM(BaseLLM):
def __init__(self, api_key=None):
def __init__(self, api_key=None, *args, **kwargs):
from anthropic import Anthropic, HUMAN_PROMPT, AI_PROMPT
super().__init__(*args, **kwargs)
self.api_key = (
api_key or settings.ANTHROPIC_API_KEY
) # If not provided, use a default from settings