The IBM Watson Assistant API key that your teacher has created for your class is being rejected by the IBM Watson server, saying that it is forbidden from creating a text model.
I've not seen this specific error type before, but I found that there is documentation describing it at
Specifically, it says:
-----------------------------------------------------------------------------------------
Validate the role that is associated with your credentials. The service access role that is associated with your API key determines which endpoints and methods you can access.
For example, with a Reader role, you might not be able to edit, create, or delete anything, and might not be able to view some details of a resource.
- To manage roles through the IBM Cloud console, go to Manage > Access (IAM), and then select Users, Access groups, or Service IDs to get started.
- For more information about access to Watson Assistant resources, see Managing access to resources.
- For more information about roles required for other Watson services, see IAM roles and actions and search for your service.
- For more information about IAM roles in IBM Cloud, see Access management.
-----------------------------------------------------------------------------------------
Kind regards
D