Skip to content

Commit eb207be

Browse files
committed
Add default value for llm_model_name parameter
Updated `test_ai_data_validation` and `test_unstructured_data_validation` macros to set a default value of `none` for the `llm_model_name` parameter, providing more flexibility in AI data validation tests.
1 parent d1fde48 commit eb207be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

macros/edr/tests/test_ai_data_validation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% test ai_data_validation(model, column_name, expectation_prompt, llm_model_name, context='') %}
1+
{% test ai_data_validation(model, column_name, expectation_prompt, llm_model_name=none, context='') %}
22
{{ config(tags = ['elementary-tests']) }}
33
{%- if execute and elementary.is_test_command() and elementary.is_elementary_enabled() %}
44
{% set model_relation = elementary.get_model_relation_for_test(model, context["model"]) %}

macros/edr/tests/test_unstructured_data_validation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% test unstructured_data_validation(model, column_name, expectation_prompt, llm_model_name) %}
1+
{% test unstructured_data_validation(model, column_name, expectation_prompt, llm_model_name=none) %}
22
{{ config(tags = ['elementary-tests']) }}
33
{% set context = "You are a data validator specializing in validating unstructured data." %}
44
{{ return(elementary.test_ai_data_validation(model, column_name, expectation_prompt, llm_model_name, context)) }}

0 commit comments

Comments
 (0)