mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-28 06:50:57 +00:00
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
from typing import Any
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class BaseSeg(BaseModel):
|
||||
type: str = "Segment"
|
||||
data: dict[str, Any]
|
||||
|
||||
|
||||
class Text(BaseSeg):
|
||||
content: str
|
||||
|
||||
|
||||
class Image(BaseSeg):
|
||||
url: str
|
||||
|
Reference in New Issue
Block a user