mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-08-30 04:27:02 +08:00
- 新增模型配置页面组件和路由 - 实现模型配置表单和相关逻辑- 添加全局配置入口和功能- 优化首页布局和样式- 新增 404 页面组件 - 更新部分组件样式和结构
17 lines
338 B
Python
17 lines
338 B
Python
from abc import ABC,abstractmethod
|
|
|
|
from app.models.gpt_model import GPTSource
|
|
|
|
|
|
class GPT(ABC):
|
|
def summarize(self, source:GPTSource )->str:
|
|
'''
|
|
|
|
:param source:
|
|
:return:
|
|
'''
|
|
pass
|
|
def create_messages(self, segments:list,**kwargs)->list:
|
|
pass
|
|
def list_models(self):
|
|
pass |