Skip to content

Commit 392749f

Browse files
committed
Use message from error catalog
1 parent f6a9106 commit 392749f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

+llms/+stream/responseStreamer.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@
5555
this.Incomplete = str{i};
5656
return;
5757
end
58-
errID = 'llms:stream:responseStreamer:InvalidInput';
59-
msg = "Input does not have the expected json format. " + str{i};
60-
ME = MException(errID,msg);
61-
throw(ME)
58+
error("llms:stream:responseStreamer:InvalidInput", ...
59+
llms.utils.errorMessageCatalog.getMessage(...
60+
"llms:stream:responseStreamer:InvalidInput", str{i}));
6261
end
6362
if isfield(json,'choices')
6463
if isempty(json.choices)

0 commit comments

Comments
 (0)