We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf9c0e commit 2731296Copy full SHA for 2731296
+llms/+stream/responseStreamer.m
@@ -43,7 +43,11 @@
43
try
44
json = jsondecode(str{i});
45
catch ME
46
- error("API returned il-formed json: " + str{i})
+ errID = 'llms:stream:responseStreamer:InvalidInput';
47
+ msg = "Input does not have the expected json format. " + str{i};
48
+ causeException = MException(errID,msg);
49
+ ME = addCause(ME,causeException);
50
+ rethrow(ME)
51
end
52
if ischar(json.choices.finish_reason) && ismember(json.choices.finish_reason,["stop","tool_calls"])
53
stop = true;
0 commit comments