Files
BiliNote/backend/app/models/gpt_model.py
思诺特 30da57ddab refactor(backend): 重构后端配置并优化 GPT 模型及转录功能
-移除 .env.example 中的后端专用 AI 配置
- 在 GPT 模型中添加新字段:style、extras 和 _format
- 修改转录器的 on_finish 方法调用
- 更新 GPT 提示模板,增加时间标记要求
2025-04-27 09:05:37 +08:00

18 lines
416 B
Python

from dataclasses import dataclass
from typing import List, Union, Optional
from app.models.transcriber_model import TranscriptSegment
@dataclass
class GPTSource:
segment: Union[List[TranscriptSegment], List]
title: str
tags:str
screenshot: Optional[bool] = False
link: Optional[bool] = False
style: Optional[str] = None
extras: Optional[str] = None
_format: Optional[list] = None