Skip to content

Commit 3bd2208

Browse files
committed
changed wording as requested
Removed unused message
1 parent 5ed246d commit 3bd2208

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

+llms/+utils/errorMessageCatalog.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
catalog("llms:assistantMustHaveTextNameAndArguments") = "Fields 'name' and 'arguments' must be text with one or more characters.";
4444
catalog("llms:mustBeValidIndex") = "Value is larger than the number of elements in Messages ({1}).";
4545
catalog("llms:stopSequencesMustHaveMax4Elements") = "Number of elements must not be larger than 4.";
46-
catalog("llms:keyMustBeSpecified") = "API key not found as environment variable {1} and not specified via ApiKey parameter.";
46+
catalog("llms:keyMustBeSpecified") = "Unable to find API key. Either set environment variable {1} or specify name-value argument ""ApiKey"".";
4747
catalog("llms:mustHaveMessages") = "Value must contain at least one message in Messages.";
4848
catalog("llms:mustSetFunctionsForCall") = "When no functions are defined, ToolChoice must not be specified.";
4949
catalog("llms:mustBeMessagesOrTxt") = "Messages must be text with one or more characters or an openAIMessages objects.";
@@ -54,7 +54,6 @@
5454
catalog("llms:promptLimitCharacter") = "Prompt must have a maximum length of {1} characters for ModelName '{2}'";
5555
catalog("llms:pngExpected") = "Argument must be a PNG image.";
5656
catalog("llms:warningJsonInstruction") = "When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message.";
57-
catalog("llms:invalidOptionsForOpenAIBackEnd") = "The parameters Resource Name, Deployment ID and API Version are not compatible with OpenAI.";
5857
catalog("llms:invalidOptionsForAzureBackEnd") = "The parameter Model Name is not compatible with Azure.";
5958
catalog("llms:apiReturnedError") = "OpenAI API Error: {1}";
6059
catalog("llms:dimensionsMustBeSmallerThan") = "Dimensions must be less than or equal to {1}.";

0 commit comments

Comments
 (0)