From a6ceeecb60312b02380fc6c92c8e66214e9de0eb Mon Sep 17 00:00:00 2001 From: yousefed Date: Mon, 7 Jul 2025 15:55:51 +0200 Subject: [PATCH] fix: disable $ref in AI schemas --- .../src/api/formats/html-blocks/tools/index.ts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/packages/xl-ai/src/api/formats/html-blocks/tools/index.ts b/packages/xl-ai/src/api/formats/html-blocks/tools/index.ts index 054d809823..505712892c 100644 --- a/packages/xl-ai/src/api/formats/html-blocks/tools/index.ts +++ b/packages/xl-ai/src/api/formats/html-blocks/tools/index.ts @@ -17,13 +17,8 @@ export const tools = { description: "Insert new blocks", schema: { block: { - $ref: "#/$defs/block", - }, - $defs: { - block: { - type: "string", - description: "html of block (MUST be a single HTML element)", - }, + type: "string", + description: "html of block (MUST be a single HTML element)", }, }, validateBlock: validateBlockFunction, @@ -70,13 +65,8 @@ export const tools = { description: "Update a block", schema: { block: { - $ref: "#/$defs/block", - }, - $defs: { - block: { - type: "string", - description: "html of block (MUST be a single HTML element)", - }, + type: "string", + description: "html of block (MUST be a single HTML element)", }, }, validateBlock: validateBlockFunction,