mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
21 lines
404 B
Python
21 lines
404 B
Python
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
|
|
|