mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-02 01:55:11 +08:00
snowykami
7bf94a15c8
Some checks failed
Deploy VitePress site to Pages / build (push) Failing after 1m10s
16 lines
210 B
Python
16 lines
210 B
Python
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
|