Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8ca041a
Use just-built packages in chat template by default
MackinnonBuck Mar 12, 2025
0480077
Merge branch 'main' into mbuck/chat-template-build-improvements
MackinnonBuck Mar 13, 2025
e95f2f3
Update OllamaSharp version
MackinnonBuck Mar 13, 2025
61731ff
Merge branch 'main' into mbuck/chat-template-build-improvements
MackinnonBuck Mar 13, 2025
317e3af
Merge branch 'main' into mbuck/chat-template-build-improvements
jeffhandley Mar 14, 2025
718197a
Resolve conflict in Versions.props for AI templates versions
jeffhandley Mar 14, 2025
a835894
Update MEAI Template test snapshot to use just-built packages
jeffhandley Mar 14, 2025
0f5ad0c
Use pinned versions by default. Bump to latest versions.
jeffhandley Mar 14, 2025
abc357a
Merge branch 'main' into mbuck/chat-template-build-improvements
MackinnonBuck Mar 14, 2025
09b0ce1
Remove non-template content from snapshot
MackinnonBuck Mar 14, 2025
529e481
Cleanup for prev commit
MackinnonBuck Mar 14, 2025
dd0511d
Update test/ProjectTemplates/Microsoft.Extensions.AI.Templates.Integr…
MackinnonBuck Mar 14, 2025
5c16cc8
New AddMessages API, fix snapshotting
MackinnonBuck Mar 14, 2025
987652a
Merge branch 'mbuck/chat-template-build-improvements' of https://gith…
MackinnonBuck Mar 14, 2025
81963d1
Update snapshot
MackinnonBuck Mar 14, 2025
6cb1a19
Remove version suffix from snapshots
MackinnonBuck Mar 14, 2025
a2cee17
Use OS-specific exclude pattern path separators
MackinnonBuck Mar 14, 2025
e30aaf0
Fix typo
MackinnonBuck Mar 14, 2025
443cb88
Merge branch 'main' into mbuck/chat-template-build-improvements
MackinnonBuck Mar 14, 2025
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
Expand Up @@ -35,6 +35,7 @@
</ItemGroup>

<ItemGroup>
<!-- Keep the exclude patterns below in sync with those in AichatwebTemplatesTests.cs -->
<Content
Include="src\ChatWithCustomData\**\*"
Exclude="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.IO;
using System.Threading.Tasks;
using EmptyFiles;
using Microsoft.Extensions.AI.Templates.IntegrationTests;
using Microsoft.Extensions.AI.Templates.Tests;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -34,16 +33,28 @@ public async Task BasicTest()
// Get the template location
string templateLocation = Path.Combine(TemplateFeedLocation, "Microsoft.Extensions.AI.Templates", "src", "ChatWithCustomData");

// Treat *.in files as text, see https://github.com/VerifyTests/EmptyFiles#istext
FileExtensions.AddTextExtension(".in");

TemplateVerifierOptions options = new TemplateVerifierOptions(templateName: templateShortName)
{
TemplatePath = templateLocation,
SnapshotsDirectory = "Snapshots",
OutputDirectory = workingDir,
DoNotPrependCallerMethodNameToScenarioName = true,
ScenarioName = "Basic",

// Keep the exclude patterns below in sync with those in Microsoft.Extensions.AI.Templates.csproj.
VerificationExcludePatterns = [
"*\\bin\\**",
"**\\obj\\**",
"**\\node_modules\\**",
"**\\*.user",
"**\\*.in",
"**\\*.out.js",
"**\\*.generated.css",
"**\\package-lock.json",
"**\\ingestioncache.db",
"**\\NuGet.config",
"**\\Directory.Build.targets",
],
}
.WithCustomScrubbers(
ScrubbersDefinition.Empty.AddScrubber((path, content) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
await chatInput!.FocusAsync();
}

// TODO: This helper is needed until https://github.com/dotnet/extensions/issues/6114 is resolved
private void AddNonTextContentToConversation(IList<AIContent> contents)
{
foreach (var content in contents)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading