Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.VisualStudio.Threading" Version="17.11.20" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.1" />
<PackageVersion Include="OpenAI" Version="[2.1.0-beta.1]" />
<PackageVersion Include="OpenAI" Version="[2.1.0-beta.2]" />
<PackageVersion Include="Azure.AI.ContentSafety" Version="1.0.0" />
<PackageVersion Include="Azure.AI.OpenAI" Version="[2.1.0-beta.1]" />
<PackageVersion Include="Azure.AI.OpenAI" Version="[2.1.0-beta.2]" />
<PackageVersion Include="Azure.Identity" Version="1.13.1" />
<PackageVersion Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.3.0" />
<PackageVersion Include="Azure.Search.Documents" Version="11.6.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private void OutputCitations(IReadOnlyList<ChatCitation> citations)
Console.WriteLine($"Chunk ID: {citation.ChunkId}");
Console.WriteLine($"Title: {citation.Title}");
Console.WriteLine($"File path: {citation.FilePath}");
Console.WriteLine($"URI: {citation.Uri}");
Console.WriteLine($"URL: {citation.Url}");
Console.WriteLine($"Content: {citation.Content}");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ public async Task GetTextContentGranularitiesWorksCorrectlyAsync(string[]? granu

public static TheoryData<string?, string?> Versions => new()
{
{ null, "2024-08-01-preview" },
Comment thread
dmytrostruk marked this conversation as resolved.
{ "V2024_10_01_preview", "2024-10-01-preview" },
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,6 @@ public async Task GetStreamingChatMessageContentsWithFunctionCallAndEmptyArgumen

public static TheoryData<string?, string?> Versions => new()
{
{ null, "2024-08-01-preview" },
{ "V2024_10_01_preview", "2024-10-01-preview" },
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public async Task ItTargetsApiVersionAsExpected(string? apiVersion, string? expe

public static TheoryData<string?, string?> Versions => new()
{
{ null, "2024-08-01-preview" },
{ "V2024_10_01_preview", "2024-10-01-preview" },
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ public async Task ItTargetsApiVersionAsExpected(string? apiVersion, string? expe

public static TheoryData<string?, string?> Versions => new()
{
{ null, "2024-08-01-preview" },
{ "V2024_10_01_preview", "2024-10-01-preview" },
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ public async Task ItTargetsApiVersionAsExpected(string? apiVersion, string? expe

public static TheoryData<string?, string?> Versions => new()
{
{ null, "2024-08-01-preview" },
{ "V2024_10_01_preview", "2024-10-01-preview" },
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public async Task ChatCompletionShouldUseChatHistoryAndReturnMetadataAsync()

foreach (var key in update.Metadata!.Keys)
{
metadata[key] = update.Metadata[key];
if (!metadata.TryGetValue(key, out object? value) || value is null)
{
metadata[key] = update.Metadata[key];
}
}
}

Expand Down Expand Up @@ -123,7 +126,10 @@ public async Task TextGenerationShouldReturnMetadataAsync()

foreach (var key in update.Metadata!.Keys)
{
metadata[key] = update.Metadata[key];
if (!metadata.TryGetValue(key, out object? value) || value is null)
{
metadata[key] = update.Metadata[key];
}
}
}

Expand Down