Skip to content

Commit

Permalink
Merge pull request #59 from marcominerva/develop
Browse files Browse the repository at this point in the history
Fix console app version
  • Loading branch information
marcominerva authored Jan 23, 2024
2 parents ff6636e + aba1053 commit 427a9b0
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 427a9b0

Please sign in to comment.