Compare commits

..

2 Commits

Author SHA1 Message Date
lihanbo 07ab6fa3cc 合并 2025-02-27 14:05:21 +08:00
lihanbo 8b85ede45c 移除无用内容 2025-02-27 14:04:28 +08:00
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})\n" +
$" - Type: {dataType}\n" +
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})" +
$" - Type: {dataType}" +
$" - Sample values: ['{string.Join("', '", sampleValues)}']";
prompts.Add(prompt);
}
@ -105,11 +105,11 @@ public class Excel2Prompt
private static string GetColumnDataType(List<object> data)
{
bool isInt = true;
bool isLong = true;
bool isDouble = true;
bool isDateTime = true;
bool isBool = true;
var isInt = true;
var isLong = true;
var isDouble = true;
var isDateTime = true;
var isBool = true;
foreach (var item in data)
{