Any way to use OpenAI Chat Model with default OpenAI tool
I would like to use the OpenAI Chat Model with the default tool provided by OpenAI for web searches: web_search_preview. As I understand it, this would allow the requests to the Open AI Chat Model to use web search’s to supplement the response similar to what is shown on the ChatGPT site.
Using OpenAI API
The OpenAI documentation shows how to use this through their API: OpenAI Web Search Documentation
Integration with LangChain
I looked into LangChain and it appears that this is supported in their API as well as a pass through. See: LangChain Integration with ChatOpenAI
Exploring n8n Node Code
So I tracked down the n8n node code to see if there was any way to pass this in through a configuration. From what I can tell there is not. See: n8n Node Code on GitHub
Attempt at Implementation
I tried implementing it myself and added this PR: Idea/Question: Initial idea for allowing OpenAI default tools on GitHub
It doesn’t work, but wanted to put up an attempt so someone else can tell me what would really need to be done.
Powered by Discourse, best viewed with JavaScript enabled