Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
lpetrl
/
LLM-API
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
LLM-API
/
src
/
modules
/
data_models.py
lpetrl
feat(API): Implemented basic API functionality.
7626706
about 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
130 Bytes
from
pydantic
import
BaseModel
class
UserMessage
(
BaseModel
):
prompt:
str
class
AnswerMessage
(
BaseModel
):
message:
str