-
Bug
-
Resolution: Fixed
-
Minor
-
4.5
-
1
-
Team Hedgehog 2024 Review 4
-
Small
Problem Description
when configuring the Azure AI API Provider, the following text is displayed:
Enter the endpoint URL for your Azure AI API, in the following format: https://YOUR_RESOURCE_NAME.azureai.azure.com/azureai/deployments
|
The suggested format is incorrect, as the PHP code in the background constructs the endpoint URL as follows:
protected function get_endpoint(): UriInterface { |
$url = rtrim(get_config('aiprovider_azureai', 'endpoint'), '/') |
. '/openai/deployments/' |
. $this->get_deployment_name() |
. '/images/generations?api-version=' |
. $this->get_api_version(); |
|
|
return new Uri($url); |
}
|
This code concatenates "/openai/deployments/" to the configured endpoint URL. Because of this, the format suggested in the help text will not work.
Expected Behaviour
The help text provides clear instructions for the end user containing the correct base URL in the following format:
https://YOUR_RESOURCE_NAME.openai.azure.com
|