mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-22 06:43:37 +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")
|