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/web-application-firewall/afds/protect-azure-open-ai.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ First, create an OpenAI instance.
35
35
36
36
:::image type="content" source="../media/protect-azure-open-ai/sample-code.png" alt-text="Screenshot showing Azure OpenAI sample code with Endpoint and Key.":::
37
37
38
-
1. Validate Azure OpenAI call using [Postman](https://www.postman.com/).
38
+
1. Validate Azure OpenAI call using your favorite API test method, such as [Visual Studio](/aspnet/core/test/http-files) or [Insomnia](https://insomnia.rest/).
39
39
Use the Azure OpenAPI endpoint and api-key values found in the earlier steps.
40
40
Use these lines of code in the POST body:
41
41
@@ -51,7 +51,7 @@ First, create an OpenAI instance.
51
51
}
52
52
53
53
```
54
-
:::image type="content" source="../media/protect-azure-open-ai/postman-body.png" alt-text="Screenshot showing the post body." lightbox="../media/protect-azure-open-ai/postman-body.png":::
54
+
:::image type="content" source="../media/protect-azure-open-ai/post-body.png" alt-text="Screenshot showing the post body." lightbox="../media/protect-azure-open-ai/post-body.png":::
55
55
1. In response to the POST, you should receive a *200 OK*:
56
56
:::image type="content" source="../media/protect-azure-open-ai/post-200-ok.png" alt-text="Screenshot showing the POST 200 OK." lightbox="../media/protect-azure-open-ai/post-200-ok.png":::
57
57
@@ -82,8 +82,8 @@ Now verify your Azure Front Door endpoint.
82
82
1. Retrieve the Azure Front Door endpoint from the Front Door Manager.
83
83
84
84
:::image type="content" source="../media/protect-azure-open-ai/front-door-endpoint.png" alt-text="Screenshot showing the Azure Front Door endpoint." lightbox="../media/protect-azure-open-ai/front-door-endpoint.png":::
85
-
2. Use Postman to send a POST request to the Azure Front Door endpoint.
86
-
1. Replace the Azure OpenAI endpoint with the AFD endpoint in Postman POST request.
85
+
2. Use your favorite API test method, such as [Visual Studio](/aspnet/core/test/http-files) or [Insomnia](https://insomnia.rest/) to send a POST request to the Azure Front Door endpoint.
86
+
1. Replace the Azure OpenAI endpoint with the AFD endpoint in the POST request.
87
87
:::image type="content" source="../media/protect-azure-open-ai/test-final.png" alt-text="Screenshot showing the final POST." lightbox="../media/protect-azure-open-ai/test-final.png":::
88
88
89
89
Azure OpenAI also generates a response using the GPT model.
@@ -106,4 +106,4 @@ The following items are common issues you may encounter when using Azure OpenAI
106
106
107
107
- You get a *415: Unsupported Media Type* message when you send a POST request to your Azure OpenAI endpoint.
108
108
109
-
If you attempt to send a POST request to your Azure OpenAI endpoint with the Content-Type header `text/plain`, you get this message. Make sure to update your Content-Type header to `application/json` in the header section in Postman.
109
+
If you attempt to send a POST request to your Azure OpenAI endpoint with the Content-Type header `text/plain`, you get this message. Make sure to update your Content-Type header to `application/json` in the header section in your test.
0 commit comments