From eeb61345732c7aa6717c463833c7f379ff4add4c Mon Sep 17 00:00:00 2001 From: antononcube Date: Wed, 20 Sep 2023 23:15:17 -0400 Subject: [PATCH] docs:Better die-message. --- lib/LLM/Functions.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LLM/Functions.rakumod b/lib/LLM/Functions.rakumod index b2af1f9..5559fb4 100644 --- a/lib/LLM/Functions.rakumod +++ b/lib/LLM/Functions.rakumod @@ -498,7 +498,7 @@ multi sub llm-chat(:$prompt = '', *%args) { # Default evaluator class my $evaluatorClass = %args:exists ?? %args !! Whatever; - die 'The value of llm-evaluator-class is to be Whatever or of the type LLM::Functions::EvaluatorChat.' + die 'The value of llm-evaluator-class is expected to be Whatever or of the type LLM::Functions::EvaluatorChat.' unless $evaluatorClass.isa(Whatever) || $evaluatorClass ~~ LLM::Functions::EvaluatorChat; # Make evaluator object