Moderation - Building Systems with the ChatGPT API

When you run the 3rd cell in the moderation API section of this course the following error occurs:

PermissionError: Project proj_OXEC08aO6rKYJweAEj6Aae5D does not have access to model text-moderation-007

Same problem here. Any way to correct the notebook please ?

---------------------------------------------------------------------------
PermissionError                           Traceback (most recent call last)
Cell In[10], line 12
      1 final_response_to_customer = f"""
      2 The SmartX ProPhone has a 6.1-inch display, 128GB storage, \
      3 12MP dual camera, and 5G. The FotoSnap DSLR Camera \
   (...)
     10 about these products or any other products we offer?
     11 """
---> 12 response = openai.Moderation.create(
     13     input=final_response_to_customer
     14 )
     15 moderation_output = response["results"][0]
     16 print(moderation_output)
[....]
PermissionError: Project `proj_OXEC08aO6rKYJweAEj6Aae5D` does not have access to model `text-moderation-007

It would help considerably if this thread was moved to the correct forum are for the Short Course involved.

You can do this using the “pencil” icon in the thread title.