mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
10 lines
245 B
Python
10 lines
245 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class QueryRequest(BaseModel):
|
|
query: str = Field(..., description="The question to ask the model")
|
|
|
|
class QueryResponse(BaseModel):
|
|
response: str = Field(..., description="The model's response")
|
|
|