Skip to content

Commit 3ad13e9

Browse files
committed
formatting fix
1 parent 6ba748d commit 3ad13e9

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

articles/ai-services/openai/concepts/content-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The default content filtering configuration is set to filter at the medium sever
5858
| High | If approved<sup>\*</sup>| If approved<sup>\*</sup> | Content detected at severity levels low and medium isn't filtered. Only content at severity level high is filtered. Requires approval<sup>\*</sup>.|
5959
| No filters | If approved<sup>\*</sup>| If approved<sup>\*</sup>| No content is filtered regardless of severity level detected. Requires approval<sup>\*</sup>.|
6060

61-
<sup>\*</sup> Only customers who have been approved for modified content filtering have full content filtering control, including configuring content filters at severity level high only or turning content filters off. Apply for modified content filters via this form: [Azure OpenAI Limited Access Review: Modified Content Filtering (microsoft.com)](https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR7en2Ais5pxKtso_Pz4b1_xUMlBQNkZMR0lFRldORTdVQzQ0TEI5Q1ExOSQlQCN0PWcu)
61+
<sup>\*</sup> Only customers who have been approved for modified content filtering have full content filtering control, including configuring content filters at severity level high only or turning content filters off. Apply for modified content filters via this form: [Azure OpenAI Limited Access Review: Modified Content Filtering (microsoft.com)](https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR7en2Ais5pxKtso_Pz4b1_xUMlBQNkZMR0lFRldORTdVQzQ0TEI5Q1ExOSQlQCN0PWcu)
6262

6363
Content filtering configurations are created within a Resource in Azure AI Studio, and can be associated with Deployments. [Learn more about configurability here](../how-to/content-filters.md).
6464

articles/ai-services/openai/concepts/use-your-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Use the following sections to help you configure Azure OpenAI on your data for o
288288

289289
### System message
290290

291-
Give the model instructions about how it should behave and any context it should reference when generating a response. You can describe the assistant's personality, what it should and shouldn't answer, and how to format responses. There's no token limit for the system message, but will be included with every API call and counted against the overall token limit. The system message will be truncated if it's greater than 400tokens.
291+
Give the model instructions about how it should behave and any context it should reference when generating a response. You can describe the assistant's personality, what it should and shouldn't answer, and how to format responses. There's no token limit for the system message, but will be included with every API call and counted against the overall token limit. The system message will be truncated if it's greater than 400 tokens.
292292

293293
For example, if you're creating a chatbot where the data consists of transcriptions of quarterly financial earnings calls, you might use the following system message:
294294

articles/ai-services/openai/includes/dall-e-rest.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
7171
api_base = '<your_endpoint>' # Enter your endpoint here
7272
api_key = '<your_key>' # Enter your API key here
7373

74-
api_version = '2023-11-01-preview'
74+
api_version = '2023-12-01-preview'
7575
url = f"{api_base}/openai/deployments/<dalle3>/images/generations?api-version={api_version}"
7676
headers= { "api-key": api_key, "Content-Type": "application/json" }
7777
body = {
7878
# Enter your prompt text here
7979
"prompt": "A multi-colored umbrella on the beach, disposable camera",
8080
"size": "1024x1024", # supported values are “1792x1024”, “1024x1024” and “1024x1792”
8181
"n": 1,
82-
"quality":"hd", # Options are “hd” and “standard”; defaults to standard
83-
    "style":"vivid" # Options are “natural” and “vivid”; defaults to “vivid”
82+
"quality": "hd", # Options are “hd” and “standard”; defaults to standard
83+
"style": "vivid" # Options are “natural” and “vivid”; defaults to “vivid”
8484
}
8585
submission = requests.post(url, headers=headers, json=body)
8686

@@ -151,13 +151,13 @@ The output from a successful image generation API call looks like the following
151151

152152
```json
153153
{
154-
"created":1698116662,
155-
    "data":[
156-
     {
157-
            "url":"<URL_to_generated_image>",
158-
"revised_prompt":"<prompt_that_was_used>"
159-
        }
160-
    ]
154+
"created": 1698116662,
155+
"data": [
156+
{
157+
"url": "<URL_to_generated_image>",
158+
"revised_prompt": "<prompt_that_was_used>"
159+
}
160+
]
161161
}
162162
```
163163

articles/ai-services/openai/reference.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ curl -X POST https://{your-resource-name}.openai.azure.com/openai/{deployment-id
553553
"prompt": "An avocado chair",
554554
"size": "1024x1024",
555555
"n": 3,
556-
"quality":"hd",
557-
"style":"vivid"
556+
"quality": "hd",
557+
"style": "vivid"
558558
}'
559559
```
560560

@@ -564,17 +564,17 @@ The operation returns a `202` status code and an `GenerateImagesResponse` JSON o
564564

565565
```json
566566
{
567-
"created":1698116662,
568-
"data":[
567+
"created": 1698116662,
568+
"data": [
569569
{
570-
"url":"url to the image",
571-
"revised_prompt":"the actual prompt that was used"
570+
"url": "url to the image",
571+
"revised_prompt": "the actual prompt that was used"
572572
},
573573
{
574-
"url":"url to the image"
575-
        },
574+
"url": "url to the image"
575+
},
576576
...
577-
    ]
577+
]
578578
}
579579
```
580580

0 commit comments

Comments
 (0)