Skip to content

Conversation

@liugddx
Copy link
Contributor

@liugddx liugddx commented Nov 9, 2025

Close #4776

When calling the OpenAI API using Spring AI, a tool function without parameters throws the following error:

Invalid schema for function 'k8s_get_available_api_resources': 
In context=(), object schema missing properties.

Error reason: The OpenAI API requires that the parameters field of all functions must include the properties attribute, even if the function has no parameters.

@liugddx
Copy link
Contributor Author

liugddx commented Nov 10, 2025

@ilayaperumalg PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid schema for function 'xxx': In context=(), object schema missing properties. When tool doesn't have any paramters

2 participants