@myun/gimi-chat 0.8.0 → 0.8.1
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.
|
@@ -838,7 +838,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
838
838
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
839
839
|
while (1) switch (_context10.prev = _context10.next) {
|
|
840
840
|
case 0:
|
|
841
|
-
agent = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] :
|
|
841
|
+
agent = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : agentObj;
|
|
842
842
|
isSystemAuto = _args10.length > 2 && _args10[2] !== undefined ? _args10[2] : false;
|
|
843
843
|
conversationId = _args10.length > 3 ? _args10[3] : undefined;
|
|
844
844
|
value = val.trim();
|
|
@@ -913,7 +913,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
913
913
|
return function (_x15) {
|
|
914
914
|
return _ref12.apply(this, arguments);
|
|
915
915
|
};
|
|
916
|
-
}(), [dispatch, startChat, chatInputConfig, createUserChat, fillInputModel, isPlaying, status, stopTTSByText, msgLoading]);
|
|
916
|
+
}(), [dispatch, startChat, chatInputConfig, createUserChat, fillInputModel, isPlaying, status, stopTTSByText, msgLoading, agentObj]);
|
|
917
917
|
|
|
918
918
|
// 获取对话标题
|
|
919
919
|
var getHeaderValue = React.useCallback( /*#__PURE__*/function () {
|