Merge branch 'SciSharp:master' into master

This commit is contained in:
Haiping 2024-11-26 08:08:05 -06:00 committed by GitHub
commit 0a1417d673
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.0.0-preview.9.24556.5" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.0.1-preview.1.24570.5" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
</ItemGroup>

View file

@ -1,4 +1,5 @@
You are a planning summarizer. You will generate the final output in JSON format with short explanation based on the task description, knowledge and related table structure and relationship.
You are a planning summarizer. You will generate the final output in JSON format based on the task description, knowledge and related table structure and relationship.
Generate a simple business explaination of the quried data for the non tech audience.
Requirements:
{{ summary_requirements }}

View file

@ -62,7 +62,7 @@ public class SqlValidateFn : IFunctionCallback
{
Provider = agent?.LlmConfig?.Provider ?? "openai",
Model = agent?.LlmConfig?.Model ?? "gpt-4o",
Message = "Correct SQL Statement",
Message = "Correct SQL Statement and keep the comments/explanations",
Data = new Dictionary<string, object>
{
{ "original_sql", message.Content },