소스 검색

Address comments

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