azure-docs
azure-docs copied to clipboard
not able to reproduce the Python example
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.
- ID: d93ea762-d8b1-efd8-c538-7de3bdcd10b4
- Version Independent ID: 476a17b4-14c0-10a9-090c-a6c23624866a
- Content: Quickstart - Deploy a model and generate text using Azure OpenAI - Azure OpenAI
- Content Source: articles/cognitive-services/openai/quickstart.md
- Service: cognitive-services
- Sub-service: openai
- GitHub Login: @ChrisHMSFT
- Microsoft Alias: chrhoder