Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthSareen committed Dec 5, 2024
1 parent 0bb270d commit 60c3d38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/structured_outputs/structured-outputs-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1 change: 1 addition & 0 deletions examples/structured_outputs/structured-outputs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ollama from 'ollama';

import { z } from 'zod';
import { zodToJsonSchema } from 'zod-to-json-schema';

Expand Down

0 comments on commit 60c3d38

Please sign in to comment.