Skip to content

Commit

Permalink
docs:Better die-message.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Sep 21, 2023
1 parent d5349bf commit eeb6134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LLM/Functions.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ multi sub llm-chat(:$prompt = '', *%args) {
# Default evaluator class
my $evaluatorClass = %args<llm-evaluator-class>:exists ?? %args<llm-evaluator-class> !! 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
Expand Down

0 comments on commit eeb6134

Please sign in to comment.