Quellcode durchsuchen

Address comments

ParthSareen vor 7 Monaten
Ursprung
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
 */
 
-// 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'),

+ 1 - 0
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';