minor update

This commit is contained in:
Joanna Ren 2024-11-12 22:08:53 -06:00
parent ab73213b6d
commit ca1789111b
2 changed files with 1 additions and 4 deletions

View file

@ -96,9 +96,6 @@ public class PrimaryStagePlanFn : IFunctionCallback
var conv = _services.GetRequiredService<IConversationService>();
var wholeDialogs = conv.GetDialogHistory();
// Append text
wholeDialogs.Last().Content += "\n\nYou must analyze the table description to infer the table relations. Only output the JSON result.";
var completion = CompletionProvider.GetChatCompletion(_services,
provider: plannerAgent.LlmConfig.Provider,
model: plannerAgent.LlmConfig.Model);

View file

@ -74,7 +74,7 @@ public class SqlValidateFn : IFunctionCallback
Message = "Correct SQL Statement",
Data = new Dictionary<string, object>
{
{ "original_sql", validateSql },
{ "original_sql", sql },
{ "error_message", ex.Message },
{ "table_structure", ddl }
}