Skip to content

Commit d24fa00

Browse files
Text only edits to error message catalog (doc review)
1 parent c607360 commit d24fa00

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

+llms/+utils/errorMessageCatalog.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
catalog("llms:mustBeAssistantWithIdAndFunction") = "Field 'tool_call' must be a struct with fields 'id' and 'function'.";
4242
catalog("llms:mustBeAssistantWithNameAndArguments") = "Field 'function' must be a struct with fields 'name' and 'arguments'.";
4343
catalog("llms:assistantMustHaveTextNameAndArguments") = "Fields 'name' and 'arguments' must be text with one or more characters.";
44-
catalog("llms:mustBeValidIndex") = "Index exceeds the number of array elements. Index must be less than or equal to ({1}).";
45-
catalog("llms:stopSequencesMustHaveMax4Elements") = "Number of elements must not be larger than 4.";
44+
catalog("llms:mustBeValidIndex") = "Index exceeds the number of array elements. Index must be less than or equal to {1}.";
45+
catalog("llms:stopSequencesMustHaveMax4Elements") = "Number of stop sequences must be less than or equal to 4.";
4646
catalog("llms:endpointMustBeSpecified") = "Unable to find endpoint. Either set environment variable AZURE_OPENAI_ENDPOINT or specify name-value argument ""Endpoint"".";
4747
catalog("llms:deploymentMustBeSpecified") = "Unable to find deployment name. Either set environment variable AZURE_OPENAI_DEPLOYMENT or specify name-value argument ""Deployment"".";
4848
catalog("llms:keyMustBeSpecified") = "Unable to find API key. Either set environment variable {1} or specify name-value argument ""APIKey"".";
49-
catalog("llms:mustHaveMessages") = "Value must contain at least one message in Messages.";
49+
catalog("llms:mustHaveMessages") = "Message must not be empty.";
5050
catalog("llms:mustSetFunctionsForCall") = "When no functions are defined, ToolChoice must not be specified.";
51-
catalog("llms:mustBeMessagesOrTxt") = "Messages must be text with one or more characters or a messageHistory object.";
52-
catalog("llms:invalidOptionAndValueForModel") = "'{1}' with value '{2}' is not supported for ModelName '{3}'";
53-
catalog("llms:invalidOptionForModel") = "{1} is not supported for ModelName '{2}'";
54-
catalog("llms:invalidContentTypeForModel") = "{1} is not supported for ModelName '{2}'";
55-
catalog("llms:functionNotAvailableForModel") = "This function is not supported for ModelName '{1}'";
56-
catalog("llms:promptLimitCharacter") = "Prompt must have a maximum length of {1} characters for ModelName '{2}'";
57-
catalog("llms:pngExpected") = "Argument must be a PNG image.";
51+
catalog("llms:mustBeMessagesOrTxt") = "Message must be nonempty string, character array, or messageHistory object.";
52+
catalog("llms:invalidOptionAndValueForModel") = "'{1}' with value '{2}' is not supported for model ""{3}"".";
53+
catalog("llms:invalidOptionForModel") = "Invalid argument name {1} for model ""{2}"".";
54+
catalog("llms:invalidContentTypeForModel") = "{1} is not supported for model ""{2}"".";
55+
catalog("llms:functionNotAvailableForModel") = "This function is not supported for model ""{1}"".";
56+
catalog("llms:promptLimitCharacter") = "Prompt must contain at most {1} characters for model ""{2}"".";
57+
catalog("llms:pngExpected") = "Image must be a PNG file (*.png).";
5858
catalog("llms:warningJsonInstruction") = "When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message.";
59-
catalog("llms:apiReturnedError") = "Server error: ""{1}""";
59+
catalog("llms:apiReturnedError") = "Server returned error indicating: ""{1}""";
6060
catalog("llms:dimensionsMustBeSmallerThan") = "Dimensions must be less than or equal to {1}.";
6161
catalog("llms:stream:responseStreamer:InvalidInput") = "Input does not have the expected json format, got ""{1}"".";
6262
end

0 commit comments

Comments
 (0)