# RubyLLM Patches: Tools Array Merging & OpenAI Responses API Support for tools #465
Halvanhelv
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
I'm curious. There's much more to supporting responses api than the tools parameter. As seen here -- #325 How does this work? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a temporary solution until
ruby_llm
gem adds native support for these features. If you're facing similar issues, this might help you.When using
.with_tools()
and.with_params(tools: [...])
, the tools arrays were being replaced instead of merged, causing one set of tools to be lost.Related: #205
OpenAI's Responses API (required for Deep Research mode and built-in
web_search
) requires a flat tool format, not the nested format used by Chat Completions API.Usage Example
Complete Installation
Note: These are temporary workarounds. Remove them once
ruby_llm
gem adds native support for Responses API and fixes the deep_merge issue.Beta Was this translation helpful? Give feedback.
All reactions