Skip to content

Commit 5263592

Browse files
committed
fix python zone
1 parent 335c73d commit 5263592

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

articles/ai-studio/how-to/develop/sdk-overview.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ The [Azure AI model inference service](/azure/ai-studio/ai-services/model-infere
163163

164164
To use the model inference service, first ensure that your project has an AI Services connection (in the management center).
165165

166-
::: zone pivot="programming-language-python"
167-
168166
Install the `azure-ai-inferencing` client library:
169167

168+
::: zone pivot="programming-language-python"
169+
170170
```bash
171171
pip install azure-ai-inference
172172
```
@@ -206,14 +206,14 @@ You can change the model name to any model that you deployed to the inference se
206206

207207
To learn more about using the Azure AI inferencing client, check out the [Azure AI model inferencing reference](/azure/ai-studio/reference/reference-model-inference-api).
208208

209+
::: zone pivot="programming-language-python"
210+
209211
## Prompt Templates
210212

211213
The inferencing client supports for creating prompt messages from templates. The template allows you to dynamically generate prompts using inputs that are available at runtime.
212214

213215
To use prompt templates, install the `azure-ai-inferencing` package:
214216

215-
::: zone pivot="programming-language-python"
216-
217217
```bash
218218
pip install azure-ai-inference
219219
```
@@ -267,19 +267,6 @@ response = chat.complete(
267267

268268
::: zone-end
269269

270-
::: zone pivot="programming-language-csharp"
271-
272-
```dotnet
273-
dotnet add package Azure.AI.Inference
274-
```
275-
276-
You can render a prompt template from an inline string:
277-
278-
:::code language="csharp" source="~/azureai-samples-csharp/scenarios/projects/basic-csharp/Program.cs" id="azure_aisearch":::
279-
280-
::: zone-end
281-
282-
283270
## Azure AI Search
284271

285272
If you have an Azure AI Search resource connected to your project, you can also use the project client to create an Azure AI Search client using the project connection.
@@ -326,6 +313,7 @@ search_client = SearchClient(
326313
```dotnet
327314
dotnet add package Azure.Search.Documents
328315
```
316+
329317
Instantiate the search and/or search index client as desired:
330318

331319
:::code language="csharp" source="~/azureai-samples-csharp/scenarios/projects/basic-csharp/Program.cs" id="azure_aisearch":::

0 commit comments

Comments
 (0)