@mujian/js-sdk 0.0.6-beta.30 → 0.0.6-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +3 -0
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -929,6 +929,9 @@ const useChatStreaming = ({ common, setError, setMessages, mujian })=>{
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
+
} catch (error) {
|
|
933
|
+
console.log('Stream error', error);
|
|
934
|
+
setError(error instanceof Error ? error : new SendMessageError(String(error)));
|
|
932
935
|
} finally{
|
|
933
936
|
console.log('stream end finally');
|
|
934
937
|
setMessages((prev)=>{
|