实现提示词管理功能,包括加载、保存、删除提示词的API接口和前端交互;更新样式以支持提示词管理界面,优化用户体验。

This commit is contained in:
Zylan
2025-04-02 23:31:09 +08:00
parent 99bee6d75b
commit 5414630b21
7 changed files with 886 additions and 35 deletions

View File

@@ -36,10 +36,9 @@ class BaseModel(ABC):
"""
pass
@abstractmethod
def get_default_system_prompt(self) -> str:
"""Return the default system prompt for this model"""
pass
"""返回默认的系统提示词,子类可覆盖但不再是必须实现的方法"""
return "您是一位专业的问题解决专家。请逐步分析问题,找出问题所在,并提供详细的解决方案。始终使用用户偏好的语言回答。"
@abstractmethod
def get_model_identifier(self) -> str: