From 22c27ed29e34c32ac971b43b5c1afff0deb16a7e Mon Sep 17 00:00:00 2001 From: pmvrmc Date: Tue, 10 Dec 2024 14:28:39 +0000 Subject: [PATCH] feat: response format as string (DLC-000) (#560) **Fixes or implements VF-XXX** ### Brief description. What is this change? --- packages/base-types/src/utils/ai.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/base-types/src/utils/ai.ts b/packages/base-types/src/utils/ai.ts index 2e0dd61df..3ca9c21d3 100644 --- a/packages/base-types/src/utils/ai.ts +++ b/packages/base-types/src/utils/ai.ts @@ -37,21 +37,7 @@ export interface AICompletionParams { } export interface AIResponseFormatParams { - // make it optional for backward compatibility - responseFormat?: { - type: 'object'; - properties: Record< - string, - { - type: 'string' | 'number' | 'integer' | 'boolean' | 'enum'; - enum?: Array; - const?: string | number | boolean; - description?: string; - } - >; - additionalProperties: boolean; - required: string[]; - }; + responseFormat?: string; } export interface AIContextParams {