AF
Ash Framework•2mo ago
sepow

ChatOpenAIResponses, tools and AshAI

Hiya, I'm using Ash and AshAI for a new project, but I'm running in to some problems when I try to use LangChain.ChatModels.ChatOpenAIResponses instead of LangChain.ChatModels.ChatOpenAI when it comes to tools. If I expose a non-generic actions I get the following error complaining about additionalProperties in the schema generated by ash_ai. [error] Received error from API: "Invalid schema for function 'create_documents': In context=('properties', 'input'), 'additionalProperties' is required to be supplied and to be false." Is there some config I'm missing that sets this required additionalProperties property everywhere, or maybe somewhere I can hook into to manipulate the schema? Cheers Sean
3 Replies
ZachDaniel
ZachDaniel•2mo ago
Could this be related to the new 0.4 release of langchain? Can you try main of ash_ai?
sepow
sepowOP•2mo ago
ChatOpenAIResponses is new in 0.4. Main doesn't fix it, but can't believe I didn't try that myself 🙂 I think I'm basically trying to figure out how to add additionalProperties: false in some places in the parameter_schema in a nice way
ZachDaniel
ZachDaniel•2mo ago
It should be based on the type itself What are the types you're using for the action return?

Did you find this page helpful?