File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
BotSharp.Plugin.Planner/Functions
BotSharp.Plugin.SqlDriver/Functions Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff 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 \n You 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 ) ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments