Add an AiNoAccessErrorException
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3504515. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !456 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>With the flexible providers like Vertex, AWS, Azure etc. you have the possibility to assign access to different models. This is also possible to do with OpenAI, but not the default mode.</p> <p>If a user tries to query a model that they do not have access to we should try to catch this in its own error exception so we can show specific log messages or do specific actions based on this information.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add an AiNoAccessErrorException</p>
issue