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 dataType = GetColumnDataType(nonNullData);
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})\n" + var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})" +
$" - Type: {dataType}\n" + $" - Type: {dataType}" +
$" - Sample values: ['{string.Join("', '", sampleValues)}']"; $" - Sample values: ['{string.Join("', '", sampleValues)}']";
prompts.Add(prompt); prompts.Add(prompt);
} }
@ -105,11 +105,11 @@ public class Excel2Prompt
private static string GetColumnDataType(List<object> data) private static string GetColumnDataType(List<object> data)
{ {
bool isInt = true; var isInt = true;
bool isLong = true; var isLong = true;
bool isDouble = true; var isDouble = true;
bool isDateTime = true; var isDateTime = true;
bool isBool = true; var isBool = true;
foreach (var item in data) foreach (var item in data)
{ {