feat(llm): pass strict through tool definitions for Codex parity (#33392)
This commit is contained in:
parent
0568855cc6
commit
5f61d21487
10 changed files with 31 additions and 9 deletions
|
|
@ -258,6 +258,8 @@ const lowerTool = (tool: ToolDefinition): OpenAIResponsesTool => ({
|
|||
name: tool.name,
|
||||
description: tool.description,
|
||||
parameters: ProviderShared.openAiToolInputSchema(tool.inputSchema),
|
||||
// TODO: Read this from OpenAI-specific tool options so direct LLM callers can opt into strict schemas.
|
||||
strict: false,
|
||||
})
|
||||
|
||||
const lowerToolChoice = (toolChoice: NonNullable<LLMRequest["toolChoice"]>) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue