diff --git a/samples/DatabaseGptConsole/Application.cs b/samples/DatabaseGptConsole/Application.cs index a11772e..348227a 100644 --- a/samples/DatabaseGptConsole/Application.cs +++ b/samples/DatabaseGptConsole/Application.cs @@ -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(); diff --git a/samples/DatabaseGptConsole/DatabaseGptConsole.csproj b/samples/DatabaseGptConsole/DatabaseGptConsole.csproj index 07ba8d8..5aeb184 100644 --- a/samples/DatabaseGptConsole/DatabaseGptConsole.csproj +++ b/samples/DatabaseGptConsole/DatabaseGptConsole.csproj @@ -5,8 +5,8 @@ net8.0 enable enable - 1.3 - 1.3 + 1.4 + 1.4