diff --git a/examples/structured_outputs/structured-outputs-image.ts b/examples/structured_outputs/structured-outputs-image.ts index 467de2e..89fea3f 100644 --- a/examples/structured_outputs/structured-outputs-image.ts +++ b/examples/structured_outputs/structured-outputs-image.ts @@ -12,7 +12,7 @@ import { createInterface } from 'readline'; including detected objects, scene analysis, colors, and any text found in the image */ -// Define the schema for image objects +// Schema for individual objects detected in the image const ObjectSchema = z.object({ name: z.string().describe('The name of the object'), confidence: z.number().min(0).max(1).describe('The confidence score of the object detection'), diff --git a/examples/structured_outputs/structured-outputs.ts b/examples/structured_outputs/structured-outputs.ts index b55dbbe..855806e 100644 --- a/examples/structured_outputs/structured-outputs.ts +++ b/examples/structured_outputs/structured-outputs.ts @@ -1,4 +1,5 @@ import ollama from 'ollama'; + import { z } from 'zod'; import { zodToJsonSchema } from 'zod-to-json-schema';