From 839cea7fe67a4580b34c6e40dd972ef62488ed57 Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Thu, 21 Aug 2025 12:41:31 +0000 Subject: [PATCH] Update ModelDialog and list_files.js to enhance functionality. Add parallel_tool_calls option in ModelDialog for improved response handling. Modify list_files.js schema to allow null types for path, depth, and includeHidden properties, and remove required fields for greater flexibility. --- modelDialog.js | 3 ++- tools/list_files.js | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modelDialog.js b/modelDialog.js index 20269b2..b7621c4 100644 --- a/modelDialog.js +++ b/modelDialog.js @@ -94,7 +94,8 @@ class ModelDialog { reasoning: { effort: 'low', summary: 'detailed' }, tools: Object.values(toolsByFile).map(t => t.def), store: true, - previous_response_id: this.previousResponseId + previous_response_id: this.previousResponseId, + parallel_tool_calls: false } this.currentStream = openai.responses.stream(call); diff --git a/tools/list_files.js b/tools/list_files.js index e8fd75b..08e00a0 100644 --- a/tools/list_files.js +++ b/tools/list_files.js @@ -103,24 +103,24 @@ export default { type: "object", properties: { path: { - type: "string", + type: ["string", "null"], description: "Directory or file path relative to the root. Use '/' for the root. Defaults to root if not specified.", }, depth: { - type: "integer", + type: ["integer", "null"], description: "Maximum subdirectory levels to traverse. Use -1 for unlimited depth. Defaults to 1.", minimum: -1, }, includeHidden: { - type: "boolean", + type: ["boolean", "null"], description: "Whether to include hidden files and directories (starting with '.'). Defaults to false.", default: false, } }, - required: ["path", "depth", "includeHidden"], + required: [], additionalProperties: false, }, - strict: true, + strict: false, }; export async function run(args) {