fix: structured outputs example (#364)

This commit is contained in:
Parth Sareen
2024-12-07 20:01:21 -08:00
committed by GitHub
parent 1066246ab5
commit 70dd0b7e63
+1 -2
View File
@@ -2,14 +2,13 @@ from pathlib import Path
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):