Spaces:
Runtime error
Runtime error
File size: 286 Bytes
c782fbf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from __future__ import annotations
from typing import Literal
from pydantic import BaseModel, ConfigDict
class StrictModel(BaseModel):
model_config = ConfigDict(extra="forbid")
class ModelMessage(StrictModel):
role: Literal["system", "user", "assistant"]
content: str
|