11classdef errorMessageCatalog
2- % This class is undocumented and will change in a future release
3-
42% errorMessageCatalog Stores the error messages from this repository
53
6- % Copyright 2023 The MathWorks, Inc.
4+ % Copyright 2023-2024 The MathWorks, Inc.
5+
76 properties (Constant )
87 % CATALOG dictionary mapping error ids to error msgs
98 Catalog = buildErrorMessageCatalog;
109 end
1110
1211 methods (Static )
1312 function msg = getMessage(messageId , slot )
14- % This function is undocumented and will change in a future release
15-
1613 % getMessage returns error message given a messageID and a SLOT.
1714 % The value in SLOT should be ordered, where the n-th element
1815 % will replace the value "{n}".
4744catalog(" llms:stopSequencesMustHaveMax4Elements" ) = " Number of elements must not be larger than 4." ;
4845catalog(" llms:keyMustBeSpecified" ) = " API key not found as environment variable OPENAI_API_KEY and not specified via ApiKey parameter." ;
4946catalog(" llms:mustHaveMessages" ) = " Value must contain at least one message in Messages." ;
50- catalog(" llms:mustSetFunctionsForCall" ) = " When no functions are defined, FunctionCall must not be specified." ;
47+ catalog(" llms:mustSetFunctionsForCall" ) = " When no functions are defined, ToolChoice must not be specified." ;
5148catalog(" llms:mustBeMessagesOrTxt" ) = " Messages must be text with one or more characters or an openAIMessages objects." ;
52- end
53-
49+ catalog(" llms:invalidOptionAndValueForModel" ) = " '{1}' with value '{2}' is not supported for ModelName '{3}'" ;
50+ catalog(" llms:invalidOptionForModel" ) = " {1} is not supported for ModelName '{2}'" ;
51+ catalog(" llms:functionNotAvailableForModel" ) = " This function is not supported for ModelName '{1}'" ;
52+ catalog(" llms:promptLimitCharacter" ) = " Prompt must have a maximum length of {1} characters for ModelName '{2}'" ;
53+ catalog(" llms:pngExpected" ) = " Argument must be a PNG image." ;
54+ catalog(" llms:warningJsonInstruction" ) = " When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message." ;
55+ end
0 commit comments