@@ -18,45 +18,45 @@ The steps to get started using the Semantic Kernel SDK are:
18
18
19
19
::: zone pivot="csharp"
20
20
21
- ```c#
22
- using Microsoft.SemanticKernel;
21
+ ``` c#
22
+ using Microsoft .SemanticKernel ;
23
23
24
- // Populate values from your OpenAI deployment
25
- var modelId = "";
26
- var endpoint = "";
27
- var apiKey = "";
24
+ // Populate values from your OpenAI deployment
25
+ var modelId = " " ;
26
+ var endpoint = " " ;
27
+ var apiKey = " " ;
28
28
29
- // Create a kernel with Azure OpenAI chat completion
30
- var builder = Kernel.CreateBuilder().AddAzureOpenAIChatCompletion(modelId, endpoint, apiKey);
29
+ // Create a kernel with Azure OpenAI chat completion
30
+ var builder = Kernel .CreateBuilder ().AddAzureOpenAIChatCompletion (modelId , endpoint , apiKey );
31
31
32
- // Build the kernel
33
- Kernel kernel = builder.Build();
34
- ```
32
+ // Build the kernel
33
+ Kernel kernel = builder .Build ();
34
+ ```
35
35
36
36
::: zone-end
37
37
38
38
::: zone pivot="python"
39
39
40
- ```python
41
- from semantic_kernel import Kernel
42
- from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion
43
-
44
- # Populate values from your OpenAI deployment
45
- model_id = ""
46
- endpoint = ""
47
- api_key = ""
48
-
49
- # Create a kernel and add Azure OpenAI chat completion
50
- kernel = Kernel()
51
- kernel.add_service(
52
- AzureChatCompletion(
53
- deployment_name=model_id,
54
- endpoint=endpoint,
55
- api_key=api_key
56
- )
40
+ ``` python
41
+ from semantic_kernel import Kernel
42
+ from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion
43
+
44
+ # Populate values from your OpenAI deployment
45
+ model_id = " "
46
+ endpoint = " "
47
+ api_key = " "
48
+
49
+ # Create a kernel and add Azure OpenAI chat completion
50
+ kernel = Kernel()
51
+ kernel.add_service(
52
+ AzureChatCompletion(
53
+ deployment_name = model_id,
54
+ endpoint = endpoint,
55
+ api_key = api_key
57
56
)
58
- kernel.add_service(chatcompletion)
59
- ```
57
+ )
58
+ kernel.add_service(chatcompletion)
59
+ ```
60
60
61
61
::: zone-end
62
62
0 commit comments