Move ai handlers to specific folder

This commit is contained in:
Brian Pham
2023-12-12 23:03:38 +08:00
parent 5239e1c3e9
commit 7eb2e769cf
11 changed files with 12 additions and 12 deletions

View File

@ -0,0 +1,20 @@
from abc import ABC, abstractmethod
class BaseAiHandler(ABC):
"""
This class defines the interface for an AI handler.
"""
@abstractmethod
def __init__(self):
pass
@property
@abstractmethod
def deployment_id(self):
pass
@abstractmethod
async def chat_completion(self, model: str, system: str, user: str, temperature: float = 0.2):
pass