AI configuration
API key
By default, Sobki's configuration expects to use the environment variable
SOBKI_AI_KEY1
to store the API key to the out-of-the-box provider.
Endpoint
The default provider endpoint needs to be updated.
Using UI
You can go on
Configuration > AI > AI Providers > Azure AI Provider
, then edit
OpenAI GPT-4o
(/admin/config/ai/providers/chat/azure/openai-gpt-4o?destination=/admin/config/ai/providers/azure
)
and update the endpoint.
Settings.php
You can add the following line in your settings.php:
$config['ai.settings']['models']['azure']['chat']['openai-gpt-4o']['endpoint'] = 'myendpoint';
PlatformSh
If using a PlatformSh hosting, you can create a variable with the name
drupalconfig:ai.settings:models:azure:chat:openai-gpt-4o:endpoint
.