I am using Moodle 4.5.3 (Build: 20250317)
I generated the OpenAI API key using my personal account on OpenAI
I am getting an error, any idea how to fix, any pointers appreciated.


I am using Moodle 4.5.3 (Build: 20250317)
I generated the OpenAI API key using my personal account on OpenAI
I am getting an error, any idea how to fix, any pointers appreciated.


See the links @
https://moodle.org/mod/forum/view.php?f=15
This is the installing and upgrading help forum.
Proper forum for your issue:
https://moodle.org/mod/forum/view.php?id=8826
SOP:
Turn on debugging and report what you see.
Check server error logs and report what you see.
Check tracker
https://tracker.moodle.org/browse/MDL-82977?jql=text%20~%20%224.5%20OpenAi%22
Moderator note: No need to re-post Binoy, as I'm just moving this discussion to the AI and Moodle forum...
More information about this error"
But there is nothing showing in the link that takes to the main Moodle site.git pullIt will tell you it is has upgraded a plugin and then you can re-visit the folder and it should run.

Hi Marcus, i tried this. But still getting "Exception - Call to undefined function xdebug_break()" appreciate your help
mp@migrate:/var/www/html/moodle/admin/tool/aitest$ sudo git pull
[sudo] password for mp:
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 11 (delta 5), reused 10 (delta 4), pack-reused 0 (from 0)
Unpacking objects: 100% (11/11), 1.72 KiB | 63.00 KiB/s, done.
From https://github.com/marcusgreen/moodle-tool_aitest
+ 5cccf79...3d7e55a main -> origin/main (forced update)
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
Al I would be very happy to have a Zoom or similar session with you to see if I can talk you through to a solution. Obvs I would tax you with asking if you would play with my AIText questions once your system was working ....
I was working with a fresh install of Moodle 5.0 and the AI Subsystem last night and it didn't work at first but after about 20 minutes of fiddling it came to life, you can see an example of the first thing I did here.
https://fosstodon.org/@marcusgreen/114338482478970243
Binoy did you ever get yours working?