Team Ai
Apppublic

Decoder2704/python-chatbot-jay

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
schemas.py17 linesDownload Raw Back to models
1from pydantic import BaseModel, Field2 3 4class ChatRequest(BaseModel):5    message: str = Field(..., min_length=1, description="User message (same role as notebook EntryBox text)")6 7 8class ChatResponse(BaseModel):9    answer: str10    alternate: int | float11    qid: int12    aid: int13 14 15class HealthResponse(BaseModel):16    status: str17