Skip to content

Commit 335c73d

Browse files
committed
fix stuff
1 parent 4e19084 commit 335c73d

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ print(response.choices[0].message.content)
193193

194194
::: zone pivot="programming-language-csharp"
195195

196-
```csharp
196+
```dotnet
197197
dotnet add package Azure.AI.Inference
198198
```
199199
You can use the project client to get a configured and authenticated `ChatCompletionsClient` or `EmbeddingsClient`:
@@ -241,12 +241,6 @@ print(messages)
241241
> [!NOTE]
242242
> Leading whitespace is automatically trimmed from input strings.
243243
244-
::: zone-end
245-
246-
::: zone pivot="programming-language-csharp"
247-
248-
::: zone-end
249-
250244
This code outputs messages that you can then pass to a chat completion call:
251245

252246
```text
@@ -258,8 +252,6 @@ This code outputs messages that you can then pass to a chat completion call:
258252

259253
You can also load prompts from a [`Prompty`](https://prompty.ai) file, enabling you to also load the model name and parameters from the `.prompty` file:
260254

261-
::: zone pivot="programming-language-python"
262-
263255
```Python
264256
from azure.ai.inference.prompts import PromptTemplate
265257

@@ -277,8 +269,17 @@ response = chat.complete(
277269

278270
::: zone pivot="programming-language-csharp"
279271

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+
280280
::: zone-end
281281

282+
282283
## Azure AI Search
283284

284285
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.

0 commit comments

Comments
 (0)