Ash FrameworkAF
Ash Framework3mo ago
7 replies
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
Was this page helpful?