Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmservera committed Jun 11, 2024
1 parent c1332ad commit b9c2304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ai/semker/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "integratedTerminal",
"console": "externalTerminal",
"envFile": "${workspaceFolder}/.env"
}

Expand Down
2 changes: 1 addition & 1 deletion ai/semker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.SemanticKernel.Connectors.OpenAI;

var builder = Kernel.CreateBuilder();
builder.Services.AddLogging(b=>b.AddConsole().SetMinimumLevel(LogLevel.Trace));
builder.Services.AddLogging(b=>b.AddDebug().SetMinimumLevel(LogLevel.Trace).AddConsole().SetMinimumLevel(LogLevel.Trace));
var kernel = builder.AddAzureOpenAIChatCompletion("gpt432",
endpoint: Environment.GetEnvironmentVariable("OpenAIEndpoint"),
apiKey: Environment.GetEnvironmentVariable("OpenAIApiKey"))
Expand Down
1 change: 1 addition & 0 deletions ai/semker/semker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.14.1" />
</ItemGroup>

Expand Down

0 comments on commit b9c2304

Please sign in to comment.