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
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/python.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ import openai
83
83
openai.api_key = os.getenv("AZURE_OPENAI_KEY")
84
84
openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT") # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
85
85
openai.api_type ='azure'
86
-
openai.api_version ='2023-05-15'# this may change in the future
86
+
openai.api_version ='2023-05-15'# this might change in the future
87
87
88
88
deployment_name='REPLACE_WITH_YOUR_DEPLOYMENT_NAME'#This will correspond to the custom name you chose for your deployment when you deployed a model.
89
89
@@ -145,7 +145,7 @@ Run the code a few more times to see what other types of responses you get as th
145
145
146
146
Since our example of `Write a tagline for an ice cream shop.` provides little context, it's normal for the model to not always return expected results. You can adjust the maximum number of tokens if the response seems unexpected or truncated.
147
147
148
-
Azure OpenAI also performs content moderation on the prompt inputs and generated outputs. The prompts or responses may be filtered if harmful content is detected. For more information, see the [content filter](../concepts/content-filter.md) article.
148
+
Azure OpenAI also performs content moderation on the prompt inputs and generated outputs. The prompts or responses might be filtered if harmful content is detected. For more information, see the [content filter](../concepts/content-filter.md) article.
0 commit comments