Find answers from the community

Updated 6 months ago

I'm also getting this type warning for

At a glance

The post mentions a type warning for output_cls. The community members in the comments discuss this warning, with one suggesting that it is fine if the output_cls is imported from pydantic.v1. Another community member tried both explicitly using v1 and copying the same import used in llamaindex. One community member expressed frustration with typing using BaesModel, while another community member stated that the warning should be safe.

I'm also getting this type warning for output_cls
Attachment
Screenshot_2024-06-25_at_12.58.59_PM.png
L
g
4 comments
type warning is fine (assuming you imported from pydantic.v1 to make your output class though)
I tried both explicitly using v1 and then tried copying the same import used in llamaindex
spooky. Typing with BaesModel has been a bit of nightmare ngl
Should be safe
Add a reply
Sign up and join the conversation on Discord