Refactor AnthropicTelegramInferenceBot to inherit from BaseTelegramInferenceBot

This commit is contained in:
2024-08-19 11:34:53 -05:00
parent a402fec869
commit 3caa8ab80f
+2 -3
View File
@@ -2,10 +2,9 @@ import os
import json import json
import logging import logging
from anthropic import Anthropic from anthropic import Anthropic
from base_inference_bot import BaseInferenceBot from base_telegram_inference_bot import BaseTelegramInferenceBot
from telegram_helper import TelegramHelper
class AnthropicTelegramInferenceBot(BaseInferenceBot): class AnthropicTelegramInferenceBot(BaseTelegramInferenceBot):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.anthropic_client = Anthropic( self.anthropic_client = Anthropic(