fix(llm): normalize OpenAI function tool schemas

This commit is contained in:
Kit Langton
2026-06-04 19:56:31 -04:00
parent ab5a12d916
commit f011d77128
4 changed files with 89 additions and 4 deletions
@@ -255,7 +255,7 @@ const lowerTool = (tool: ToolDefinition): OpenAIResponsesTool => ({
type: "function",
name: tool.name,
description: tool.description,
parameters: tool.inputSchema,
parameters: ProviderShared.openAiToolInputSchema(tool.inputSchema),
})
const lowerToolChoice = (toolChoice: NonNullable<LLMRequest["toolChoice"]>) =>