From 728d47a615c0ee8623acc15fae202d57b811eb7f Mon Sep 17 00:00:00 2001 From: ParthSareen Date: Wed, 4 Dec 2024 15:38:48 -0800 Subject: [PATCH 1/2] Update interface format to accept object to support-structured-outputs --- src/interfaces.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index a5058f5..f1c1888 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -99,7 +99,7 @@ export interface ChatRequest { model: string messages?: Message[] stream?: boolean - format?: string + format?: string | object keep_alive?: string | number tools?: Tool[] From db25bdd3cf04c41b0afd58daff92f3dd79be4327 Mon Sep 17 00:00:00 2001 From: ParthSareen Date: Wed, 4 Dec 2024 16:16:41 -0800 Subject: [PATCH 2/2] Add format update for GenerateRequest --- src/interfaces.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index f1c1888..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