Skip to content

Commit af2214c

Browse files
Merge pull request #212369 from orenmichaely/ormichae/thickclientbugfix
updated multi-slot nuget version and thick client bug fix
2 parents b93d184 + 7cbb4ba commit af2214c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

articles/cognitive-services/personalizer/includes/quickstart-local-inference-csharp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ Next, construct the Rank and Reward URLs.
119119
```csharp
120120
static PersonalizerClient InitializePersonalizerClient(Uri url)
121121
{
122-
return new PersonalizerClient(url, new AzureKeyCredential(ResourceKey));
122+
// Set the local inference flag to true when initializing the client.
123+
return new PersonalizerClient(url, new AzureKeyCredential(ResourceKey), new PersonalizerClientOptions(useLocalInference: true));
123124
}
124125
```
125126

articles/cognitive-services/personalizer/includes/quickstart-multislot-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Build succeeded.
6060
Within the application directory, install the Personalizer client library for .NET with the following command:
6161

6262
```console
63-
dotnet add package Azure.AI.Personalizer --version 2.0.0-beta.1
63+
dotnet add package Azure.AI.Personalizer --version 2.0.0-beta.2
6464
```
6565

6666
From the project directory, open the `Program.cs` file in your preferred editor or IDE. Add the following using directives:

0 commit comments

Comments
 (0)