From 70dd0b7e639f5b6b39e15963521f1d4c6810464b Mon Sep 17 00:00:00 2001 From: Parth Sareen Date: Sat, 7 Dec 2024 20:01:21 -0800 Subject: [PATCH] fix: structured outputs example (#364) --- examples/structured-outputs-image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/structured-outputs-image.py b/examples/structured-outputs-image.py index 73d09cc..2de17b4 100644 --- a/examples/structured-outputs-image.py +++ b/examples/structured-outputs-image.py @@ -2,14 +2,13 @@ from pydantic import BaseModel from typing import List, Optional, Literal from ollama import chat -from rich import print # Define the schema for image objects class Object(BaseModel): name: str confidence: float - attributes: Optional[dict] = None + attributes: str class ImageDescription(BaseModel):