Skip to content

Commit cc034e0

Browse files
authored
Merge pull request #745 from Joannall/master
minor update
2 parents bf274fa + f6a0fa5 commit cc034e0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Plugins/BotSharp.Plugin.Planner/Functions/PrimaryStagePlanFn.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ private async Task<RoleDialogModel> GetAiResponse(Agent plannerAgent)
9696
var conv = _services.GetRequiredService<IConversationService>();
9797
var wholeDialogs = conv.GetDialogHistory();
9898

99-
// Append text
100-
wholeDialogs.Last().Content += "\n\nYou must analyze the table description to infer the table relations. Only output the JSON result.";
101-
10299
var completion = CompletionProvider.GetChatCompletion(_services,
103100
provider: plannerAgent.LlmConfig.Provider,
104101
model: plannerAgent.LlmConfig.Model);

src/Plugins/BotSharp.Plugin.SqlDriver/Functions/SqlValidateFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public async Task<bool> Execute(RoleDialogModel message)
7474
Message = "Correct SQL Statement",
7575
Data = new Dictionary<string, object>
7676
{
77-
{ "original_sql", validateSql },
77+
{ "original_sql", sql },
7878
{ "error_message", ex.Message },
7979
{ "table_structure", ddl }
8080
}

0 commit comments

Comments
 (0)