Merge branch 'dev' into hugo-shipping-notice
# Conflicts: # backend/app/api/chat.py # backend/app/services/agent_runtime_context/dify_inputs.py # backend/app/services/maintenance_chat_service.py
This commit is contained in:
commit
fc694a8f43
55 files changed
+2107
-192
No files matched your search
@@ -26,6 +26,7 @@ import { useChatSessions } from './useChatSessions';
|
||||
import { useChatShipping } from './useChatShipping';
|
||||
import { useChatSourceFiles } from './useChatSourceFiles';
|
||||
import { useChatAssetHistory } from './useChatAssetHistory';
|
||||
import { useChatAssetImage } from './useChatAssetImage';
|
||||
import { useChatStore } from '../stores/chat.store';
|
||||
import { useTrainingWorkspace } from './useTrainingWorkspace';
|
||||
import { matchesTrainingAgent } from '../training/trainingWorkspace.utils';
|
||||
@@ -159,6 +160,8 @@ export function useChatPage() {
|
||||
const {
|
||||
filePreviewVisible,
|
||||
previewFile,
|
||||
previewFiles,
|
||||
currentPreviewIndex,
|
||||
getSourceTitle,
|
||||
getSourceMeta,
|
||||
getSourceBrief,
|
||||
@@ -167,6 +170,8 @@ export function useChatPage() {
|
||||
getDisplayRetrieverResources,
|
||||
shouldExpandSourceDetails,
|
||||
openPreview,
|
||||
openPreviewGallery,
|
||||
setPreviewFileIndex,
|
||||
parsePlmPreviewLink,
|
||||
} = sourceFiles;
|
||||
const assetHistory = useChatAssetHistory({
|
||||
@@ -174,6 +179,11 @@ export function useChatPage() {
|
||||
openPreview,
|
||||
warn: (text) => msg.warning(text),
|
||||
});
|
||||
const assetImage = useChatAssetImage({
|
||||
agentId: currentAgentId,
|
||||
openPreviewGallery,
|
||||
warn: (text) => msg.warning(text),
|
||||
});
|
||||
|
||||
watch(currentAgentId, (id) => {
|
||||
chatStore.setCurrentAgentId(id > 0 ? id : null);
|
||||
@@ -318,6 +328,8 @@ export function useChatPage() {
|
||||
resetPeripheralState,
|
||||
filePreviewVisible,
|
||||
previewFile,
|
||||
previewFiles,
|
||||
currentPreviewIndex,
|
||||
});
|
||||
|
||||
({ loadConversation, startNewChat } = conversationApi);
|
||||
@@ -366,6 +378,7 @@ export function useChatPage() {
|
||||
parsePlmPreviewLink,
|
||||
openPreview,
|
||||
openAssetHistory: assetHistory.openHistory,
|
||||
openAssetImage: assetImage.openImage,
|
||||
getMessageLinks,
|
||||
getDisplayRetrieverResources,
|
||||
getSourceLinks,
|
||||
@@ -507,6 +520,7 @@ export function useChatPage() {
|
||||
queryPreviewError: queryPreview.error,
|
||||
queryPreviewState: queryPreview.state,
|
||||
assetHistory,
|
||||
assetImage,
|
||||
...agent,
|
||||
agentGuides: chatGuides.guides,
|
||||
showGuideModal: chatGuides.showModal,
|
||||
@@ -517,6 +531,9 @@ export function useChatPage() {
|
||||
...attachmentApi,
|
||||
filePreviewVisible,
|
||||
previewFile,
|
||||
previewFiles,
|
||||
currentPreviewIndex,
|
||||
setPreviewFileIndex,
|
||||
isSidebarOpen,
|
||||
sidebarCollapsed,
|
||||
toggleBrowserPanel: browser.toggle,
|
||||
|
||||
Reference in new issue
Block a user