Replies: 1 comment
-
I just had to define a class Fisher and use LIST(Fish) and pass it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Team and Community,
I want to produce multiple Enteties of my class. How can I do this?
`class Fish(BaseModel):
name: constr()
color: constr()
size: conint()
habitat: constr()
generator = ol.generate.json(model, Fish)
fish = generator("generate 3 differnet type of fish" + "name, color, size, habitat")
`
I just get one fish.
My final goal is to give the model a text and then produce as many classes as it found in the Text in the json format. Is this possible?
Thanks for your work :)
Beta Was this translation helpful? Give feedback.
All reactions