Title: Not working
Last modified: July 13, 2026

---

# Not working

 *  [jack_sparrow](https://wordpress.org/support/users/jack_sparrow/)
 * (@jack_sparrow)
 * [22 hours, 8 minutes ago](https://wordpress.org/support/topic/not-working-4429/)
 * There is some issue when I try using Open AI models. 
   I get the message: Connection
   failed: Unsupported parameter: ‘max_tokens’ is not supported with this model.
   Use ‘max_completion_tokens’ instead.This error occurs because you are targeting
   a newer OpenAI or Azure OpenAI model (such as the **o1, o3, o4, or GPT-5 series**)
   that has deprecated the legacy `max_tokens` parameter. These newer reasoning 
   and advanced models require `max_completion_tokens` instead. Please update the
   plugin.Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Yas G](https://wordpress.org/support/users/yasg/)
 * (@yasg)
 * [19 hours, 29 minutes ago](https://wordpress.org/support/topic/not-working-4429/#post-18963439)
 * Hi [@jack_sparrow](https://wordpress.org/support/users/jack_sparrow/),
 * Thanks for reporting this and for the clear explanation.
 * You are right – newer OpenAI models no longer accept the legacy `max_tokens` 
   parameter and require `max_completion_tokens` instead. I will review the plugin’s
   OpenAI integration and update it so it works correctly with the newer models.
 * I’m also looking into improving the plugin’s AI integration more broadly, but
   the immediate priority is to fix this compatibility issue.
 * I will update this thread once I have a fix available.
 * Thanks again for the report.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnot-working-4429%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/smart-match-for-woocommerce/assets/icon-256x256.png?rev=
   3455429)
 * [Smart Match for WooCommerce](https://wordpress.org/plugins/smart-match-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-match-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-match-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-match-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-match-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-match-for-woocommerce/reviews/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yas G](https://wordpress.org/support/users/yasg/)
 * Last activity: [19 hours, 29 minutes ago](https://wordpress.org/support/topic/not-working-4429/#post-18963439)
 * Status: not resolved