Chat

azure-openai-samplesBasic_SamplesdotnetcsharpChat

Azure chat completions example

In this example we'll try to go over all operations needed to get chat completions working using the Azure endpoints. This example focuses on chat completions but also touches on some other operations that are also available using the API. This example is meant to be a quick way of showing simple operations and is not meant as a tutorial.

[1]
[ ]
[3]

Run this cell, it will prompt you for the apiKey, endPoint, and chatDeployment

[4]
[5]

Create chat completion

Now let's send a sample chat completion to the deployment.

[7]
Orange who?

We can also stream the response.

[8]
Orange
 who
?