Browse Source

Address comments

ParthSareen 7 months ago
parent
commit
60c3d38bdb

+ 1 - 1
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
     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({
 const ObjectSchema = z.object({
     name: z.string().describe('The name of the 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'),
     confidence: z.number().min(0).max(1).describe('The confidence score of the object detection'),

+ 1 - 0
examples/structured_outputs/structured-outputs.ts

@@ -1,4 +1,5 @@
 import ollama from 'ollama';
 import ollama from 'ollama';
+
 import { z } from 'zod';
 import { z } from 'zod';
 import { zodToJsonSchema } from 'zod-to-json-schema';
 import { zodToJsonSchema } from 'zod-to-json-schema';