update: 现在会根据每次请求的信息生成相应的Agent

This commit is contained in:
killua committed 2024-06-11 15:11:23 +08:00
1 parent d885684533
commit 286e83e025
3 files changed
+24 -3

No files matched your search

+6
View File
@@ -33,6 +33,12 @@ class SideNoiseError(Exception):
def __init__(self, message="Side Noise!"):
super().__init__(message)
self.message = message
# Session不存在异常
class SessionNotFoundError(Exception):
def __init__(self, message="Session Not Found!"):
super().__init__(message)
self.message = message
# 大模型返回结束(非异常)
class LLMResponseEnd(Exception):
+1
View File
@@ -30,6 +30,7 @@ class update_assistant_system_prompt_request(BaseModel):
system_prompt:str
class update_assistant_deatil_params_request(BaseModel):
platform:str
model :str
temperature :float
speaker_id:int