Skip to content

Commit

Permalink
Fix console app version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcominerva committed Jan 23, 2024
1 parent 3142dab commit aba1053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion samples/DatabaseGptConsole/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public async Task ExecuteAsync()

if (!string.IsNullOrWhiteSpace(question))
{
using var reader = await databaseGptClient.ExecuteNaturalLanguageQueryAsync(conversationId, question, options);
using var result = await databaseGptClient.ExecuteNaturalLanguageQueryAsync(conversationId, question, options);
var reader = result.DataReader;

var table = new Table();
var columns = reader.GetColumnNames().Select(c => $"[olive]{c}[/]").ToArray();
Expand Down
4 changes: 2 additions & 2 deletions samples/DatabaseGptConsole/DatabaseGptConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<FileVersion>1.3</FileVersion>
<AssemblyVersion>1.3</AssemblyVersion>
<FileVersion>1.4</FileVersion>
<AssemblyVersion>1.4</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit aba1053

Please sign in to comment.