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)
96
96
var conv = _services . GetRequiredService < IConversationService > ( ) ;
97
97
var wholeDialogs = conv . GetDialogHistory ( ) ;
98
98
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
-
102
99
var completion = CompletionProvider . GetChatCompletion ( _services ,
103
100
provider : plannerAgent . LlmConfig . Provider ,
104
101
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)
74
74
Message = "Correct SQL Statement" ,
75
75
Data = new Dictionary < string , object >
76
76
{
77
- { "original_sql" , validateSql } ,
77
+ { "original_sql" , sql } ,
78
78
{ "error_message" , ex . Message } ,
79
79
{ "table_structure" , ddl }
80
80
}
You can’t perform that action at this time.
0 commit comments