TagSpaces is an offline, open source, document manager with tagging support
Add generated by which AI-model in the AI description generation
Stanimir4bab7b720220
diff --git a/src/renderer/hooks/ChatProvider.tsx b/src/renderer/hooks/ChatProvider.tsxindex df0857522..e710747ac 100644--- a/src/renderer/hooks/ChatProvider.tsx+++ b/src/renderer/hooks/ChatProvider.tsx@@ -1232,6 +1232,7 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {handleGenDescResults(entry,results,+ entryModel.name,generationSettings.current.appendAnalysisToDescription,),);@@ -1244,6 +1245,7 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {handleGenDescResults(entry,results,+ entryModel.name,generationSettings.current.appendToDescription,),);@@ -1281,12 +1283,15 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {function handleGenDescResults(entry: TS.FileSystemEntry,response: string,+ modelName: string,append: boolean,): TS.FileSystemEntry {if (response) {const generatedDesc =response +- '\\\n *Generated with AI on ' ++ '\\\n *Generated with AI model ' ++ modelName ++ ' on ' +formatDateTime(new Date(), true) +'* \n';//dispatch(SettingsActions.setEntryContainerTab(TabNames.descriptionTab));