Skip to content

Commit 93e7ffb

Browse files
committed
Changed some error messages
1 parent 4eb88f8 commit 93e7ffb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pgml-extension/src/api.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ pub fn transform_conversational_json(
646646
.is_some_and(|v| v == "conversational")
647647
{
648648
error!(
649-
"ARRAY[]::JSONB inputs for transformer should only be used with a conversational task"
649+
"ARRAY[]::JSONB inputs for transform should only be used with a conversational task"
650650
);
651651
}
652652
match crate::bindings::transformers::transform(&task.0, &args.0, inputs) {
@@ -666,7 +666,7 @@ pub fn transform_conversational_string(
666666
) -> JsonB {
667667
if task != "conversational" {
668668
error!(
669-
"ARRAY[]::JSONB inputs for transformer should only be used with a conversational task"
669+
"ARRAY[]::JSONB inputs for transform should only be used with a conversational task"
670670
);
671671
}
672672
let task_json = json!({ "task": task });
@@ -725,7 +725,7 @@ pub fn transform_stream_conversational_json(
725725
.is_some_and(|v| v == "conversational")
726726
{
727727
error!(
728-
"ARRAY[]::JSONB inputs for transformer_stream should only be used with a conversational task"
728+
"ARRAY[]::JSONB inputs for transform_stream should only be used with a conversational task"
729729
);
730730
}
731731
// We can unwrap this becuase if there is an error the current transaction is aborted in the map_err call
@@ -747,7 +747,7 @@ pub fn transform_stream_conversational_string(
747747
) -> SetOfIterator<'static, JsonB> {
748748
if task != "conversational" {
749749
error!(
750-
"ARRAY::JSONB inputs for transformer_stream should only be used with a conversational task"
750+
"ARRAY::JSONB inputs for transform_stream should only be used with a conversational task"
751751
);
752752
}
753753
let task_json = json!({ "task": task });

0 commit comments

Comments
 (0)