Spaces:
Runtime error
Runtime error
Download api/schemas/chat_schema.py from VashuTheGreat2/Multi-Rag: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/Multi-Rag/resolve/main/api/schemas/chat_schema.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/Multi-Rag/api/schemas/chat_schema.py
-
curl -L -o chat_schema.py https://huggingface.co/spaces/VashuTheGreat2/Multi-Rag/resolve/main/api/schemas/chat_schema.py
248 Bytes
| from pydantic import BaseModel, Field | |
| class ChatRequest(BaseModel): | |
| message: str | |
| stream: bool = Field(True,description="for allowing streaming") | |
| metadata: dict = Field(default_factory=dict, description="Optional metadata dictionary") | |