diff --git a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts index e7dbf2c5c..d9d04b67e 100644 --- a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts +++ b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts @@ -153,7 +153,7 @@ function createDataMetadata(results: Record[]): DataMetadata { const uniqueValues = new Set(values).size; columnMetadata.push({ - name: columnName, + name: columnName.toLowerCase(), min_value: minValue, max_value: maxValue, unique_values: uniqueValues, diff --git a/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts b/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts index 61514e918..c327ada7e 100644 --- a/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts +++ b/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts @@ -145,7 +145,7 @@ function createDataMetadata(results: Record[]): DataMetadata { const uniqueValues = new Set(values).size; columnMetadata.push({ - name: columnName, + name: columnName.toLowerCase(), min_value: minValue, max_value: maxValue, unique_values: uniqueValues,