ParthSareen преди 7 месеца
родител
ревизия
60c3d38bdb
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      examples/structured_outputs/structured-outputs-image.ts
  2. 1 0
      examples/structured_outputs/structured-outputs.ts

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