Compare commits

..

No commits in common. "07ab6fa3cc0252a0d7d65fe29b900382467f8af6" and "cad060faf893ef6fe5e0a9d95bebdc85b1b56508" have entirely different histories.

1 changed files with 7 additions and 7 deletions

View File

@ -63,8 +63,8 @@ public class Excel2Prompt
// 自动识别数据类型
var dataType = GetColumnDataType(nonNullData);
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})" +
$" - Type: {dataType}" +
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})\n" +
$" - Type: {dataType}\n" +
$" - Sample values: ['{string.Join("', '", sampleValues)}']";
prompts.Add(prompt);
}
@ -105,11 +105,11 @@ public class Excel2Prompt
private static string GetColumnDataType(List<object> data)
{
var isInt = true;
var isLong = true;
var isDouble = true;
var isDateTime = true;
var isBool = true;
bool isInt = true;
bool isLong = true;
bool isDouble = true;
bool isDateTime = true;
bool isBool = true;
foreach (var item in data)
{