From e4b6ed69183e0024bf628245975de5950bb5af46 Mon Sep 17 00:00:00 2001 From: Parth Sareen Date: Wed, 4 Dec 2024 16:24:52 -0800 Subject: [PATCH] Update interface format to accept object to support structured outputs (#171) * Update interface format to accept object for supporting structured outputs --- src/interfaces.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index a5058f5..a941c9f 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -53,7 +53,7 @@ export interface GenerateRequest { context?: number[] stream?: boolean raw?: boolean - format?: string + format?: string | object images?: Uint8Array[] | string[] keep_alive?: string | number @@ -99,7 +99,7 @@ export interface ChatRequest { model: string messages?: Message[] stream?: boolean - format?: string + format?: string | object keep_alive?: string | number tools?: Tool[]