feat: 新增定位日志功能

This commit is contained in:
digua
2026-01-21 00:40:40 +08:00
parent 8f3f3e62f2
commit a669306bbd
6 changed files with 126 additions and 3 deletions

View File

@@ -743,6 +743,13 @@ const aiApi = {
deleteMessage: (messageId: string): Promise<boolean> => {
return ipcRenderer.invoke('ai:deleteMessage', messageId)
},
/**
* 打开当前 AI 日志文件并定位到文件
*/
showAiLogFile: (): Promise<{ success: boolean; path?: string; error?: string }> => {
return ipcRenderer.invoke('ai:showLogFile')
},
}
// LLM API - LLM 服务功能