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

AI: Action setting defaults not updated when changing model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 5.0
    • AI
    • MOODLE_500_STABLE
    • MDL-84778-main
    • Hide
      1. Log in as admin
      2. Go to Site admin -> General -> AI -> AI Providers
      3. Create a new AI provider for Open AI (you don't need a valid API key)
      4. Click the provider settings
      5. Click settings for 'Generate text'
      6. Under settings, set a value for all the 'Settings' inputs (i.e. top_p, max_tokens, etc)
      7. Click save changes
      8. Click setting for 'Generate text' (again)
      9. Change the model to 'o1'
      10. CONFIRM that all the 'Settings' inputs have been cleared
      Show
      Log in as admin Go to Site admin -> General -> AI -> AI Providers Create a new AI provider for Open AI (you don't need a valid API key) Click the provider settings Click settings for 'Generate text' Under settings, set a value for all the 'Settings' inputs (i.e. top_p, max_tokens, etc) Click save changes Click setting for 'Generate text' (again) Change the model to 'o1' CONFIRM that all the 'Settings' inputs have been cleared
    • Hide

      Code verified against automated checks.

      Checked MDL-84778 using repository: https://github.com/davewoloszyn/moodle.git

      More information about this report

      Built on: Wed Mar 19 03:09:54 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84778 using repository: https://github.com/davewoloszyn/moodle.git main (0 errors / 0 warnings) [branch: MDL-84778-main | CI Job ] More information about this report Built on: Wed Mar 19 03:09:54 UTC 2025
    • 2
    • Team Hedgehogs 2025 Sprint 1.3

      When working with action settings such as generate text action settings form defaults are not respected when changing models.

      This is related to the funcitonality from MDL-82980

      To reproduce:

      1. Create a new AI provider for Open AI
      2. Click the provider settings
      3. Click settings for generate text
      4. Under settings, set a value for "top_p", e.g 123
      5. Click save changes
      6. Click setting for generate text (again)
      7. Change the model to "o1"
      8. The form will reload but the defaut for "top_p" will not change it will still be 123.

      The issue identified in step 8 is the issue, instead it should load the form defaul for that model.

      This makes it very easy to accidentally to save the wrong value for the worng model.

            david.woloszyn@moodle.com David Woloszyn
            matt.porritt@moodle.com Matt Porritt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 13 minutes
                4h 13m

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