[Solved β ] DROPBOX_SEARCH_FILE_OR_FOLDER: LangChain Tool call not formatted properly
I'm seeing an issue when trying to use this tool with LangChain and OpenAI GPT 4o Mini (hosted in Azure OpenAI Studio).
The tool call message looks like this:
The Tool message error I'm receiving is:
Any ideas what I might be doing wrong?
8 Replies
Checking this.
ambitious-aquaβ’3mo ago
I found that there is an issue with nested schemas in our langchain.
Fixing that. Meanwhile, could you try our openai directly: https://gist.github.com/kaavee315/f16715b7a229380850f57c201d368961
It has code both for OpenAI assistant and chat completion whichever youn want to use.
And I will come back on the langchain in a bit.
Gist
Dropbox search with OpenAI
Dropbox search with OpenAI. GitHub Gist: instantly share code, notes, and snippets.
passive-yellowOPβ’3mo ago
Thanks @kaavee . I'll wait for the fix to come around. I don't have a great way to bring plain OpenAI into my platform right now
ambitious-aquaβ’3mo ago
Hey @G-Rage, this has been fixed. We changed the schema a bit as Langchain tools perform weirdly with nested schemas. Please try and let me know if you face any issues.
passive-yellowOPβ’3mo ago
Thanks @kaavee! Is this fix available in a new release? Or just pushed to the repo?
ambitious-aquaβ’3mo ago
It doesn't need a new release.
passive-yellowOPβ’3mo ago
ah -- server side. Thanks!
Confirmed that the fix is working
ambitious-aquaβ’3mo ago
Awesome, let me know if you face any other issue π