Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83442

Incorrect Help Text: Azure AI API Provider

XMLWordPrintable

    • 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

            david.woloszyn@moodle.com David Woloszyn
            CodingKoala Dimitri Lesy
            Raquel Ortega Raquel Ortega
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 16 minutes
                16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.