mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-10 15:50:37 +08:00
Update AI handler instantiation in server files
This commit is contained in:
@ -14,15 +14,15 @@ class BaseAiHandler(ABC):
|
||||
def deployment_id(self):
|
||||
pass
|
||||
|
||||
@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
|
||||
"""
|
||||
@abstractmethod
|
||||
async def chat_completion(self, model: str, system: str, user: str, temperature: float = 0.2):
|
||||
"""
|
||||
This method should be implemented to return a chat completion from the AI model.
|
||||
Args:
|
||||
model (str): the name of the model to use for the chat completion
|
||||
system (str): the system message string to use for the chat completion
|
||||
user (str): the user message string to use for the chat completion
|
||||
temperature (float): the temperature to use for the chat completion
|
||||
"""
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user