Skip to content

Commit 70dd0b7

Browse files
authored
fix: structured outputs example (#364)
1 parent 1066246 commit 70dd0b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/structured-outputs-image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
from pydantic import BaseModel
33
from typing import List, Optional, Literal
44
from ollama import chat
5-
from rich import print
65

76

87
# Define the schema for image objects
98
class Object(BaseModel):
109
name: str
1110
confidence: float
12-
attributes: Optional[dict] = None
11+
attributes: str
1312

1413

1514
class ImageDescription(BaseModel):

0 commit comments

Comments
 (0)