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

AI: Provider Plugin - Azure AI

XMLWordPrintable

    • MOODLE_405_STABLE
    • main_MDL-82411
    • Hide

      Testing 1 - Administration setting

      1. Login as admin.
      2. Navigate to Site admin >> General >> AI >> Manage settings for AI providers
      3. Verify there is an Azure AI API Provider plugin, and it's disabled.
      4. Enable the Azure AI  provider plugin.
      5. Verify the toggle button is changed to ON.
      6. Disable the Azure AI  provider plugin.
      7. Click the settings link of the Azure AI  provider.
      8. Verify there is a Provider specific settings form.
      9. Verify there is a Provider actions table under the save changes button.
      10. Verify all actions in the provider actions table are enabled.
      11. Disable the Generate text action.
      12. Reload the page
      13. Verify that the Generate text action is disabled.
      14. Repeat from Step 11 to 13 with other actions (Generate image, Summarise text)

      Testing 2 - Provider

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Disable the Azure AI API Provider
      4. Enable the HTML Text Editor placement.
      5. Click Settings for HTML Text Editor placement.
      6. Verify that you will see: "This action is unavailable. No providers are configured for this action"
      7. Enable 
      8. the Azure AI API Provider
      9. Click Settings for HTML Text Editor placement.
      10. Verify that you will not see: "This action is unavailable. No providers are configured for this action"
      11. Verify that you will see: Generate text and Generate image

      Testing 3 - Placement

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Enable the Azure AI API Provider (and all actions inside the Settings).
      4. Disable the HTML Text Editor Placement.
      5. Edit your profile.
      6. Verify that you will not see any AI buttons in the Tiny editor.
      7. Enable the HTML Text Editor Placement.
      8. Click on the Setting link.
      9. Disable the Generate text and Generate image actions.
      10. Edit your profile.
      11. Verify that you will not see any AI buttons in the Tiny editor.
      12. Enable the Generate text action.
      13. Edit your profile.
      14. Verify that you will see a single AI button called AI generate text in the Tiny editor.
      15. Enable the Generate image action and disable the Generate text action.
      16. Edit your profile.
      17. Verify that you will see a single AI button called AI generate image in the Tiny editor.
      18. Enable both Generate image action and the Generate text action.
      19. Edit your profile.
      20. Verify that you will see a Generate AI content dropdown button.
      21. Click on that button
      22. Verify that you will see 2 items called AI generate text and AI generate image.

      Testing 4 - Error

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Enable the Azure AI API Provider (and all actions inside the Settings).
      4. Provide wrong information for API key of Azure AI  provider.
      5. Edit your profile.
      6. Try to Generate text or image by TinyMCE placement.
      7. Verify that you will see the error:
        • Title: Something went wrong
        • Content: Try again later

      Testing 5 - Generate text

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Enable the Azure AI API Provider (and all actions inside the Settings).
      4. Enter in a valid Azure AI API key, and an Azure AI API endpoint URL. (Ping Huong or Matt to get a working one)
      5. Click "Save changes"
      6. Click on the "settings link" for the "Generate text" provider action.
      7. Enter a valid Deployment ID
      8. Click "Save changes"
      9. Edit your profile.
      10. Click on the AI button.
      11. Select AI Generate Text.
      12. Agree with the Policy (If any).
      13. Input some text in the Describe the text you want AI to create. Example: Write a short introduction for Moodle LMS.
      14. Press Generate Text.
      15. Verify you will see the Generated text on the right.
      16. Press Regenerate.
      17. Verify you will see another generated text on the right.
      18. Press Insert.
      19. Verify that the text is inserted into the text editor.

      Testing 6 - Generate image

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Enable the Azure AI API Provider (and all actions inside the Settings).
      4. Enter in a valid Azure AI API key, and an Azure AI API endpoint URL. (Ping Huong or Matt to get a working one)
      5. Click "Save changes"
      6. Click on the "settings link" for the "Generate image" provider action.
      7. Enter a valid Deployment ID
      8. Click "Save changes"
      9. Edit your profile.
      10. Click on the AI button.
      11. Select AI Generate Image.
      12. Agree with the Policy (If any).
      13. Input some text in the Describe the image you want AI to create. Example: Cat.
      14. Select High for Image quality.
      15. Select Landscape for Image shape.
      16. Press Generate Image.
      17. Verify you will see the Generated image on the right. (You might get the error. It's because the test stuff is based in Melbourne, and sometimes it has connection issues. You can retry)
      18. Press Regenerate.
      19. Verify you will see another generated image on the right.
      20. Press Next.
      21. Verify that you will see another screen for image insert.
      22. Verify that your previous prompt is added to the image description (Below the image)
      23. Press Save
      24. Verify that the image is inserted into the text editor.
      25. Feel free to re-test with other image quality and image shape.
      Show
      Testing 1 - Administration setting Login as admin. Navigate to Site admin >> General >> AI >> Manage settings for AI providers Verify there is an Azure AI API Provider plugin, and it's disabled. Enable the Azure AI  provider plugin. Verify the toggle button is changed to ON. Disable the Azure AI  provider plugin. Click the settings link of the Azure AI  provider. Verify there is a Provider specific settings form. Verify there is a Provider actions table under the save changes button. Verify all actions in the provider actions table are enabled. Disable the Generate text action. Reload the page Verify that the Generate text action is disabled. Repeat from Step 11 to 13 with other actions (Generate image, Summarise text) Testing 2 - Provider Login as admin. Disable the OpenAI API Provider. Disable the Azure AI API Provider Enable the HTML Text Editor placement. Click Settings for HTML Text Editor placement. Verify  that you will see: "This action is unavailable. No providers are configured for this action" Enable  the Azure AI API Provider Click Settings for HTML Text Editor placement. Verify that you will not see: "This action is unavailable. No providers are configured for this action" Verify that you will see: Generate text and Generate image Testing 3 - Placement Login as admin. Disable the OpenAI API Provider. Enable the Azure AI API Provider (and all actions inside the Settings). Disable the HTML Text Editor Placement. Edit your profile. Verify  that you will not see any AI buttons in the Tiny editor. Enable the HTML Text Editor Placement. Click on the Setting link. Disable the Generate text and Generate image actions. Edit your profile. Verify  that you will not see any AI buttons in the Tiny editor. Enable the Generate text action. Edit your profile. Verify  that you will see  a single AI button  called AI generate text in the Tiny editor. Enable the Generate image action and disable the Generate text action. Edit your profile. Verify  that you will see  a single AI button  called AI generate image in the Tiny editor. Enable both Generate image action and the Generate text action. Edit your profile. Verify  that you will see a Generate AI content dropdown button. Click on that button Verify  that you will see 2 items called AI generate text and AI generate image. Testing 4 - Error Login as admin. Disable the OpenAI API Provider. Enable the Azure AI API Provider (and all actions inside the Settings). Provide wrong information for API key of Azure AI  provider. Edit your profile. Try to Generate text or image by TinyMCE placement. Verify that you will see the error: Title: Something went wrong Content: Try again later Testing 5 - Generate text Login as admin. Disable the OpenAI API Provider. Enable the Azure AI API Provider (and all actions inside the Settings). Enter in a valid Azure AI API key, and an Azure AI API endpoint URL. (Ping Huong or Matt to get a working one) Click "Save changes" Click on the "settings link" for the "Generate text" provider action. Enter a valid Deployment ID Click "Save changes" Edit your profile. Click on the AI button. Select AI Generate Text. Agree with the Policy (If any). Input some text in the Describe the text you want AI to create. Example: Write a short introduction for Moodle LMS. Press Generate Text. Verify you will see the Generated text on the right. Press Regenerate. Verify you will see another generated text on the right. Press Insert. Verify that the text is inserted into the text editor. Testing 6 - Generate image Login as admin. Disable the OpenAI API Provider. Enable the Azure AI API Provider (and all actions inside the Settings). Enter in a valid Azure AI API key, and an Azure AI API endpoint URL. (Ping Huong or Matt to get a working one) Click "Save changes" Click on the "settings link" for the "Generate image" provider action. Enter a valid Deployment ID Click "Save changes" Edit your profile. Click on the AI button. Select AI Generate Image. Agree with the Policy (If any). Input some text in the Describe the image you want AI to create. Example: Cat. Select High for Image quality. Select Landscape for Image shape. Press Generate Image. Verify you will see the Generated image on the right. (You might get the error. It's because the test stuff is based in Melbourne, and sometimes it has connection issues. You can retry) Press Regenerate. Verify you will see another generated image on the right. Press Next. Verify that you will see another screen for image insert. Verify that your previous prompt is added to the image description (Below the image) Press Save Verify that the image is inserted into the text editor. Feel free to re-test with other image quality and image shape.
    • 1
    • Team Hedgehog 2024 Sprint 3.1, Team Hedgehog 2024 Sprint 3.2, Team Hedgehog 2024 Sprint 3.3

      Create an AI provider plugin that interfaces with the Azure AI API:

      https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

      This plugin will interface with the upstream AI service and will make available AI Actions to the subsystem.

      Initial Supported Actions:

      • Generate: Generate text content based on user prompt text
      • Summarise: Summarise the provided text. Condense long text into key points. Simplify anything too complex for learners to understand.{}
      • Images: Generate images to illustrate the provided text.

        1. (1) 14 Passed -- (Main)MDL-82411.png
          (1) 14 Passed -- (Main)MDL-82411.png
          130 kB
        2. (2) 11 Passed -- (Main)MDL-82411.png
          (2) 11 Passed -- (Main)MDL-82411.png
          87 kB
        3. (3) 22 Passed -- (Main)MDL-82411.png
          (3) 22 Passed -- (Main)MDL-82411.png
          74 kB
        4. (4) 7 Passed -- (Main)MDL-82411.png
          (4) 7 Passed -- (Main)MDL-82411.png
          47 kB
        5. (5) 19 Passed -- (Main)MDL-82411.png
          (5) 19 Passed -- (Main)MDL-82411.png
          80 kB
        6. (6) 25 Passed -- (Main)MDL-82411.png
          (6) 25 Passed -- (Main)MDL-82411.png
          947 kB
        7. MDL-82411_SaveChanges_button.png
          MDL-82411_SaveChanges_button.png
          218 kB
        8. MDL-82411_Test1_step17_NotOK.png
          MDL-82411_Test1_step17_NotOK.png
          102 kB
        9. MDL-82411_Test2_NO.mp4
          7.67 MB
        10. MDL-82411_Test4_OK.png
          MDL-82411_Test4_OK.png
          35 kB
        11. MDL-82411_Test5_OK.png
          MDL-82411_Test5_OK.png
          73 kB
        12. MDL-82411_Test6_OK.png
          MDL-82411_Test6_OK.png
          559 kB

            matt.porritt@moodle.com Matt Porritt
            matt.porritt@moodle.com Matt Porritt
            Raquel Ortega Raquel Ortega
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 38 minutes
                1d 2h 38m

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