Functioncall schema error with special model
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3573038. --> Reported by: [ipumpkin](https://www.drupal.org/user/2279442) Related to !1190 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When use deepseek model with Drupal Canvas AI got error from LLM API:</p> <pre>Error invoking model response: Invalid schema for function 'ai_agent_verify_task_completion': schema must be a JSON Schema of 'type: "object"', got 'type: null'.</pre><p><img src="https://www.drupal.org/files/issues/2026-02-12/wechat_2026-02-12_144045_617.png" alt="error in drupal canvas ai"></p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <ol> <li>install Drupal CMS 2.0 and enable ai function with Drupal Canvas AI</li> <li>install <a href="https://www.drupal.org/project/ai_provider_openai_compatible">OpenAI Compatible Provider</a></li> <li>config OpenAI Compatible Provider with Deepseek Key and set deepseek-chat as default chat model</li> <li>create new page and use Drupal Canvas AI build page</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue