mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 05:10:38 +08:00
update base
This commit is contained in:
@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
|
|||||||
|
|
||||||
class BaseAiHandler(ABC):
|
class BaseAiHandler(ABC):
|
||||||
"""
|
"""
|
||||||
This class defines the interface for an AI handler.
|
This class defines the interface for an AI handler to be used by the PR Agents.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
@ -15,6 +15,14 @@ class BaseAiHandler(ABC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
"""
|
||||||
|
This method should be implemented to return a chat completion from the AI model.
|
||||||
|
params:
|
||||||
|
model: the name of the model to use for the chat completion
|
||||||
|
system: the system message string to use for the chat completion
|
||||||
|
user: the user message string to use for the chat completion
|
||||||
|
temperature: the temperature to use for the chat completion
|
||||||
|
"""
|
||||||
async def chat_completion(self, model: str, system: str, user: str, temperature: float = 0.2):
|
async def chat_completion(self, model: str, system: str, user: str, temperature: float = 0.2):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user