Is it possible to have the response be a tuple of a model? #402
Answered
by
kemingy
DonaldNgai
asked this question in
Q&A
-
And my model looks like this:
Is it possible to have the response be
|
Beta Was this translation helpful? Give feedback.
Answered by
kemingy
Jan 27, 2025
Replies: 1 comment 1 reply
-
Do you mean |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kemingy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean
Dict[str, ChatMessageModel]
? You can use the pydantic root model:RootModel[Dict[str, ChatMessageModel]]