Skip to content

Commit

Permalink
fix: structured outputs example (ollama#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthSareen authored Dec 8, 2024
1 parent 1066246 commit 70dd0b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/structured-outputs-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 70dd0b7

Please sign in to comment.