Method setChatStructuredJsonSchema does not exist on provider openai
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3546741. --> Reported by: [merilainen](https://www.drupal.org/user/304437) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I tried to define an AI Automator to a link field using a "LLM: Link" type. After saving the content, I get the following error:<br> "Method setChatStructuredJsonSchema does not exist on provider openai"<br> This happens with the OpenAI provider, but I think it can happen with any provider.</p> <p>This error comes from <a href="https://git.drupalcode.org/project/ai/-/blob/1.1.x/modules/ai_automators/src/PluginBaseClasses/RuleBase.php?ref_type=heads#L628">the RuleBase class line 628</a>.<br> That $instance should be of type ProviderProxy.<br> <code>@param \Drupal\ai\Plugin\ProviderProxy $instance</code><br> But I don't see a method "setChatStructuredJsonSchema" in <a href="https://git.drupalcode.org/project/ai/-/blob/1.1.x/src/Plugin/ProviderProxy.php">the ProviderProxy class</a>.</p>
issue