Skip to content

Commit

Permalink
Use message from error catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
ccreutzi committed Jun 24, 2024
1 parent f6a9106 commit 392749f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions +llms/+stream/responseStreamer.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@
this.Incomplete = str{i};
return;
end
errID = 'llms:stream:responseStreamer:InvalidInput';
msg = "Input does not have the expected json format. " + str{i};
ME = MException(errID,msg);
throw(ME)
error("llms:stream:responseStreamer:InvalidInput", ...
llms.utils.errorMessageCatalog.getMessage(...
"llms:stream:responseStreamer:InvalidInput", str{i}));
end
if isfield(json,'choices')
if isempty(json.choices)
Expand Down

0 comments on commit 392749f

Please sign in to comment.