Skip to content

Commit

Permalink
Update errorMessageCatalog.m
Browse files Browse the repository at this point in the history
  • Loading branch information
vpapanasta authored Jun 5, 2024
1 parent 0b623f9 commit d0e4c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions +llms/+utils/errorMessageCatalog.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

properties(Constant)
%CATALOG dictionary mapping error ids to error msgs
Catalog = buildErrorMessageCatalog;
Catalog = buildErrorMessageCatalog();
end

methods(Static)
Expand All @@ -31,7 +31,7 @@
end
end

function catalog = buildErrorMessageCatalog
function catalog = buildErrorMessageCatalog()
catalog = dictionary("string", "string");
catalog("llms:mustBeUnique") = "Values must be unique.";
catalog("llms:mustBeVarName") = "Parameter name must begin with a letter and contain not more than 'namelengthmax' characters.";
Expand All @@ -56,4 +56,4 @@
catalog("llms:warningJsonInstruction") = "When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message.";
catalog("llms:apiReturnedError") = "OpenAI API Error: {1}";
catalog("llms:dimensionsMustBeSmallerThan") = "Dimensions must be less than or equal to {1}.";
end
end

0 comments on commit d0e4c93

Please sign in to comment.