genkit
genkit copied to clipboard
fix(py): Support more complex schemas gemini
I was doing a recommender system by myself, and I found that gemini do not support this kind of output_schemas:
class Product(BaseModel):
product_name: str = Field(description='name of the product')
product_description: str = Field(description='description of the product')
class StoreSchema(BaseModel):
store_name: str = Field(description='name of the store')
products: list[Product] = Field(description='list of products in the store (5 to 10)')
So I decided to generate the bugfix
Checklist (if applicable):
- [X] PR title is following https://www.conventionalcommits.org/en/v1.0.0/
- [X] Tested (manually, unit tested, etc.)
- [ ] Docs updated (updated docs or a docs bug required)