Roo-Code/packages
Matt Rubens bc6fad1f9d
Add native tool calling support to OpenAI-compatible (#9369)
* Add native tool calling support to OpenAI-compatible

* Fix OpenAI strict mode schema validation by adding converter methods to BaseProvider

- Add convertToolsForOpenAI() and convertToolSchemaForOpenAI() methods to BaseProvider
- These methods ensure all properties are in required array and convert nullable types
- Remove line_ranges from required array in read_file tool (converter handles it)
- Update OpenAiHandler and BaseOpenAiCompatibleProvider to use helper methods
- Eliminates code duplication across multiple tool usage sites
- Fixes: OpenAI completion error: 400 Invalid schema for function 'read_file'

---------

Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com>
2025-11-18 18:20:51 -05:00
..
build Move the native tool call toggle to experimental settings (#9297) 2025-11-17 09:41:30 -05:00
cloud Batch settings updates from the webview to the extension host (#9165) 2025-11-12 12:29:06 -08:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
evals Retry eval tasks if API instability detected (#9365) 2025-11-18 11:45:54 -08:00
ipc chore: add changeset for v3.31.1 (#9153) 2025-11-10 11:52:10 -05:00
telemetry Track when telemetry settings change (#8339) 2025-09-26 22:48:33 -04:00
types Add native tool calling support to OpenAI-compatible (#9369) 2025-11-18 18:20:51 -05:00