You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed || to && , to workaround it
and then got another validation issue:
I was failing file attachment validation: $file_val
lib/formslib.php
$this->_validated = ($internal_val and $element_val and $moodle_val and $file_val);
so I upload a PDF (to workaround it, although I was not using the assistant)
and then, when all validation was "clear", I got DB insert error "assistant field can not be null"
<FIELD NAME="assistant" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="The name of the activity module instance"/>
I change it to "can be null" as I did not use any assistant.
Finally, I manage to create a new chat activity and use it :-)
which works very very nice!
The text was updated successfully, but these errors were encountered:
Hello @nadavkav, please check if you provided correct OpenAI API key. Plugin checks if API key you provided in global settings is correct. If not you have to add API key in new module instance.
API key is checked by sending request with provided API key.
I was asked to input APIKEY although I saved one on the module admin settings.
and even when I input a proper key I got "invalid key missing"
I found out that the validation logic was looking for an assistant key. (which I did not use or selected)
I changed || to && , to workaround it
and then got another validation issue:
I was failing file attachment validation: $file_val
lib/formslib.php
so I upload a PDF (to workaround it, although I was not using the assistant)
and then, when all validation was "clear", I got DB insert error "assistant field can not be null"
I change it to "can be null" as I did not use any assistant.
Finally, I manage to create a new chat activity and use it :-)
which works very very nice!
The text was updated successfully, but these errors were encountered: