TypeError while creating database
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582739. --> Reported by: [jan kellermann](https://www.drupal.org/user/371731) Related to !1397 >>> <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>While creating a new database server in seach api for Drupal Search AI the follwing error occurs in <a href="https://git.drupalcode.org/project/ai/-/blob/1.3.x/src/AiVdbProviderPluginManager.php?ref_type=heads#L133">AiVdbProviderPluginManager.php</a>:</p> <pre>TypeError: Drupal\ai_vdb_provider_milvus\Plugin\VdbProvider\MilvusProvider::createCollection(): Argument #2 ($dimension) must be of type int, string given, called in modules/contrib/ai/src/AiVdbProviderPluginManager.php on line 131 in Drupal\ai_vdb_provider_milvus\Plugin\VdbProvider\MilvusProvider-&gt;createCollection() (line 426 of modules/contrib/ai_vdb_provider_milvus/src/Plugin/VdbProvider/MilvusProvider.php).</pre><p>This is not a Milvus bug because the type is expected in <a href="https://git.drupalcode.org/project/ai/-/blob/1.3.x/src/AiVdbProviderInterface.php?ref_type=heads#L76">AiVdbProviderInterface.php</a>.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>Please provide information like AI modules enabled, which AI provider, browser, etc.</p> <p>Install modules for Drupa Search AI ana generate a new server for search API.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Do type conversion</p>
issue