Set strict parameter to false in OpenAI response mapping (#598)

lm-studio hosted openai-like api endpoint requires this parameter to either be a defined boolean, or not specifying this option entirely. null will fail the API validation.
This commit is contained in:
gnattu
2026-01-10 03:32:58 +08:00
committed by GitHub
parent 902d5d3d05
commit 58b903690b

View File

@@ -543,7 +543,7 @@ function convertTools(tools: Tool[]): OpenAITool[] {
name: tool.name,
description: tool.description,
parameters: tool.parameters as any, // TypeBox already generates JSON Schema
strict: null,
strict: false,
}));
}