Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two build warnings #703

Merged
merged 1 commit into from
Apr 27, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public async Task ItCanRunCrudOperationWithPlainTextPayloadSuccessfullyAsync()

var messageContent = this._httpMessageHandlerStub.RequestContent;
Assert.NotNull(messageContent);
Assert.True(messageContent.Any());
Assert.True(messageContent.Length != 0);

var payloadText = System.Text.Encoding.UTF8.GetString(messageContent, 0, messageContent.Length);
Assert.Equal("fake-input-value", payloadText);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal static IServiceCollection AddPlannerFactory(this IServiceCollection ser
services.AddScoped<PlannerFactoryAsync>(sp => async (IKernel kernel) =>
{
// Create a kernel for the planner with the same contexts as the chat's kernel but with only skills we want available to the planner.
IKernel plannerKernel = new Kernel(new SkillCollection(), kernel.PromptTemplateEngine, kernel.Memory, kernel.Config, kernel.Log);
var plannerKernel = new Kernel(new SkillCollection(), kernel.PromptTemplateEngine, kernel.Memory, kernel.Config, kernel.Log);

//
// Add skills to the planner here.
Expand Down