azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

not able to reproduce the Python example

Open michalmar opened this issue 3 years ago • 0 comments

I am not able to reproduce the example - when I run the exmple I am getting InvalidRequestError:

start_phrase = 'When I go to the store, I want a'
response = openai.Completion.create(
  engine="*****",
  prompt=start_phrase,
  max_tokens=10,
)

returns:

openai.error.InvalidRequestError: The response was filtered due to the prompt triggering Azure OpenAI’s content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: https://go.microsoft.com/fwlink/?linkid=2198766

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

michalmar avatar Aug 17 '22 13:08 michalmar