Skip to content
Snippets Groups Projects
Unverified Commit 5512a9e4 authored by Huu Le (Lee)'s avatar Huu Le (Lee) Committed by GitHub
Browse files

add example request (#32)

parent 29b17ee3
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,18 @@ class _Message(BaseModel):
role: MessageRole
content: str
class Config:
json_schema_extra = {
"example": {
"messages": [
{
"role": "user",
"content": "How to tune a guitar?",
}
]
}
}
class _ChatData(BaseModel):
messages: List[_Message]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment