Description
When using the Google Gemini connector with the AI plugin (Suggest Tags feature), a 400 Bad Request error is thrown with the following message:
Invalid JSON payload received. Unknown name "additionalProperties" at 'generation_config.response_schema.properties[0].value.items': Cannot find field.
Invalid JSON payload received. Unknown name "additionalProperties" at 'generation_config.response_schema': Cannot find field.
The Gemini API does not support the additionalProperties field in its response_schema. This field appears to be included in the JSON schema sent to Gemini, which causes the request to fail entirely.
Step-by-step reproduction instructions
- Install and activate the WordPress AI plugin.
- Configure the Google Gemini connector with a valid API key.
- Open or create any Post in the Block Editor.
- Paste content into the post body.
- In the Block sidebar, click the "Suggest Tags" feature.
- Observe the 400 Bad Request error in the editor notice bar.
Screenshots, screen recording, code snippet
Environment info
- WordPress version: WordPress 7.0
- AI plugin version: Version 0.6.0
- Active Theme: Twenty Twenty-Five
- Connector used: Google Gemini
- Browser: Google Chrome
- Device/OS: macOS
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except the AI plugin.
Please confirm which theme type you used for testing.
Description
When using the Google Gemini connector with the AI plugin (Suggest Tags feature), a 400 Bad Request error is thrown with the following message:
Invalid JSON payload received. Unknown name "additionalProperties" at 'generation_config.response_schema.properties[0].value.items': Cannot find field.
Invalid JSON payload received. Unknown name "additionalProperties" at 'generation_config.response_schema': Cannot find field.
The Gemini API does not support the additionalProperties field in its response_schema. This field appears to be included in the JSON schema sent to Gemini, which causes the request to fail entirely.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except the AI plugin.
Please confirm which theme type you used for testing.