Skip to content

Bump the dotnet group across 1 directory with 2 updates #43328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
<PackageReference Include="Azure.Core" Version="1.43.0" />
<PackageReference Include="Azure.AI.OpenAI" Version="2.0.0" />
<PackageReference Include="Azure.Core" Version="1.44.1" />
</ItemGroup>

</Project>

Unchanged files with check annotations Beta

string endpoint = "YOUR_OPENAI_ENDPOINT";
string key = "YOUR_OPENAI_KEY";
OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));

Check failure on line 8 in docs/ai/how-to/snippets/content-filtering/Program.cs

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\Program.cs(8,1): error CS0246: The type or namespace name 'OpenAIClient' could not be found (are you missing a using directive or an assembly reference?) [D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\AIContentFiltering.csproj]
var chatCompletionsOptions = new ChatCompletionsOptions()

Check failure on line 10 in docs/ai/how-to/snippets/content-filtering/Program.cs

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\Program.cs(10,34): error CS0246: The type or namespace name 'ChatCompletionsOptions' could not be found (are you missing a using directive or an assembly reference?) [D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\AIContentFiltering.csproj]
{
DeploymentName = "YOUR_DEPLOYMENT_NAME",
Messages =
{
new ChatRequestSystemMessage("You are a helpful assistant."),

Check failure on line 15 in docs/ai/how-to/snippets/content-filtering/Program.cs

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\Program.cs(15,13): error CS0246: The type or namespace name 'ChatRequestSystemMessage' could not be found (are you missing a using directive or an assembly reference?) [D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\AIContentFiltering.csproj]
new ChatRequestUserMessage("YOUR_PROMPT")

Check failure on line 16 in docs/ai/how-to/snippets/content-filtering/Program.cs

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\Program.cs(16,13): error CS0246: The type or namespace name 'ChatRequestUserMessage' could not be found (are you missing a using directive or an assembly reference?) [D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\AIContentFiltering.csproj]
}
};
Response<ChatCompletions> response = client.GetChatCompletions(chatCompletionsOptions);

Check failure on line 20 in docs/ai/how-to/snippets/content-filtering/Program.cs

GitHub Actions / snippets-build

D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\Program.cs(20,10): error CS0246: The type or namespace name 'ChatCompletions' could not be found (are you missing a using directive or an assembly reference?) [D:\a\docs\docs\docs\ai\how-to\snippets\content-filtering\AIContentFiltering.csproj]
Console.WriteLine(response.Value.Choices[0].Message.Content);
Console.WriteLine();
// </chatCompletionFlow>