Skip to content

Commit

Permalink
Update to Semantic Kernel 1.14.1 (#14)
Browse files Browse the repository at this point in the history
* minor

* Updated to semantic kernel 1.14.1
  • Loading branch information
BLaZeKiLL authored Jun 16, 2024
1 parent f7d349c commit bbf161e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.3.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.14.1" />
</ItemGroup>

<!-- Versioning -->
Expand All @@ -18,7 +18,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.3" />
</ItemGroup>

<!-- Nuget Stuff -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Codeblaze.SemanticKernel.Connectors.Ollama;

#pragma warning disable SKEXP0003
#pragma warning disable SKEXP0001
public static class OllamaMemoryBuilderExtensions
{
/// <summary>
Expand Down Expand Up @@ -51,4 +51,4 @@ Uri baseUrl
return builder;
}
}
#pragma warning enable SKEXP0003
#pragma warning enable SKEXP0001

Check warning on line 54 in dotnet/Codeblaze.SemanticKernel.Connectors.Ollama/OllamaMemoryBuilderExtensions.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Expected 'disable' or 'restore'
5 changes: 3 additions & 2 deletions dotnet/Codeblaze.SemanticKernel.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ await AnsiConsole.Status().StartAsync("Processing...", async ctx =>
ctx.Spinner(Spinner.Known.Star);
ctx.SpinnerStyle(Style.Parse("green"));
ctx.Status($"Processing input to generate cypher");
ctx.Status($"Processing input");
result = await kernel.BasicPrompt(prompt);
});

Expand All @@ -96,8 +96,9 @@ async Task Memory()

var prompt = AnsiConsole.Prompt(new TextPrompt<string>("What are you looking to do today?\n").PromptStyle("teal"));

#pragma warning disable SKEXP0001
IAsyncEnumerable<MemoryQueryResult> result = null;
#pragma warning enable SKEXP0001
await AnsiConsole.Status().StartAsync("Processing...", async ctx =>
{
ctx.Spinner(Spinner.Known.Star);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public KernelService(IConfiguration config)

builder.Services.AddTransient<HttpClient>();

builder.AddOllamaChatCompletion(config["Ollama:Model"], config["Ollama:BaseUrlGeneration"]);
// builder.AddOllamaChatCompletion(config["Ollama:Model"], config["Ollama:BaseUrlGeneration"]);
builder.AddOllamaTextGeneration(config["Ollama:Model"], config["Ollama:BaseUrlGeneration"]);

_Kernel = builder.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Codeblaze.SemanticKernel.Console.Services;

#pragma warning disable SKEXP0003
#pragma warning disable SKEXP0001
public class NeoMemoryService
{
private readonly ISemanticTextMemory _memory;
Expand Down Expand Up @@ -43,4 +43,4 @@ public async IAsyncEnumerable<MemoryQueryResult> Run(string prompt)
}
}
}
#pragma warning enable SKEXP0003
#pragma warning enable SKEXP0001
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SemanticKernel" Version="1.3.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.14.1" />
<PackageReference Include="Neo4j.Driver" Version="5.17.0" />
</ItemGroup>

Expand Down

0 comments on commit bbf161e

Please sign in to comment.