fix segment enable service api (#10445)

This commit is contained in:
Jyong
2024-11-08 17:09:05 +08:00
committed by GitHub
parent 919275cc58
commit 888d7e6422
2 changed files with 24 additions and 25 deletions

View File

@@ -0,0 +1,10 @@
from typing import Optional
from pydantic import BaseModel
class SegmentUpdateEntity(BaseModel):
content: str
answer: Optional[str] = None
keywords: Optional[list[str]] = None
enabled: Optional[bool] = None