developerck / moodle-atto_aic

1 stars 2 forks source link

error when try to generate content #1

Closed hafriz closed 10 months ago

hafriz commented 10 months ago

hi, after installing the plugin and put the openai key. try to generate content. error shown as below

{"error":"Exception - Class 'curl' not found","errorcode":"generalexceptionmessage","stacktrace":" line 72 of \/lib\/editor\/atto\/plugins\/aic\/classes\/ai.php: Error thrown\n line 38 of \/lib\/editor\/atto\/plugins\/aic\/ajax.php: call to atto_aic\ai::generate_text()\n"

developerck commented 10 months ago

which version of moodle you are using ?

hafriz commented 10 months ago

I'm using moodle version 4.1

On Tue, 23 Jan 2024, 7:13 pm Chandra Kishor, @.***> wrote:

which version of moodle you are using ?

— Reply to this email directly, view it on GitHub https://github.com/developerck/moodle-atto_aic/issues/1#issuecomment-1905821462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKUNJ4ZSYURDRE266MKU4TYP6LORAVCNFSM6AAAAABCGIAHQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVHAZDCNBWGI . You are receiving this because you authored the thread.Message ID: @.***>

developerck commented 10 months ago

can you please try with latest release 1.1 and please update/

hafriz commented 10 months ago

hi @developerck

here is the error

{"error":"Error occurred","errorcode":"error","stacktrace":" line 83 of \/lib\/editor\/atto\/plugins\/aic\/classes\/ai.php: moodle_exception thrown\n line 38 of \/lib\/editor\/atto\/plugins\/aic\/ajax.php: call to atto_aic\ai::generate_text()\n","debuginfo":"\nError code: error",

hafriz commented 10 months ago

hi @developerck

i think this is might be the error :

"message": "The model text-davinci-003 has been deprecated, learn more here: https://platform.openai.com/docs/deprecations",

cyclonmaster commented 9 months ago

I had same problem,

moodle-3.10.3 moodle-atto_aic-1.2 gpt-3.5-turbo-instruct

Error: {"error":"Error occurred","errorcode":"error","stacktrace":null,"debuginfo":null,"reproductionlink":null}

Please advice.

developerck commented 9 months ago

please use latest package from github.

cyclonmaster commented 9 months ago

moodle-atto_aic-1.2 is not latest? I don't see any later than 1.2.

developerck commented 9 months ago

This is latest.

On Tue, Feb 20, 2024, 12:49 PM cyclonmaster @.***> wrote:

moodle-atto_aic-1.2 is not latest? I don't see any later than 1.2.

— Reply to this email directly, view it on GitHub https://github.com/developerck/moodle-atto_aic/issues/1#issuecomment-1953612672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPFV23BDVOFGS74F56LZTYURE6PAVCNFSM6AAAAABCGIAHQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGYYTENRXGI . You are receiving this because you were mentioned.Message ID: @.***>

cyclonmaster commented 9 months ago

no wonder....my openai api free trials already expired. I wonder if this plugin will support google gemini in future?