diff --git a/packages/geek-auto-start-chat-with-boss/default-config-file/boss.json b/packages/geek-auto-start-chat-with-boss/default-config-file/boss.json index 435e5ca..174a5e9 100644 --- a/packages/geek-auto-start-chat-with-boss/default-config-file/boss.json +++ b/packages/geek-auto-start-chat-with-boss/default-config-file/boss.json @@ -9,6 +9,8 @@ "expectJobRegExpStr": "", "autoReminder": { "throttleIntervalMinutes": 10, - "rechatLimitDay": 21 + "rechatLimitDay": 21, + "geminiApiKey": "", + "rechatContentSource": 1 } } \ No newline at end of file diff --git a/packages/ui/src/common/enums/auto-start-chat.ts b/packages/ui/src/common/enums/auto-start-chat.ts index a0e001a..ede72cc 100644 --- a/packages/ui/src/common/enums/auto-start-chat.ts +++ b/packages/ui/src/common/enums/auto-start-chat.ts @@ -8,3 +8,8 @@ export enum AUTO_CHAT_ERROR_EXIT_CODE { AUTO_START_CHAT_DAEMON_PROCESS_SUICIDE = 86, AUTO_START_CHAT_MAIN_PROCESS_SUICIDE = 87, } + +export enum RECHAT_CONTENT_SOURCE { + LOOK_FORWARD_EMOTION = 1, + GEMINI_WITH_CHAT_CONTEXT = 2 +} diff --git a/packages/ui/src/renderer/src/page/Configuration/ReadNoReplyReminder.vue b/packages/ui/src/renderer/src/page/Configuration/ReadNoReplyReminder.vue index efa25f0..043f52e 100644 --- a/packages/ui/src/renderer/src/page/Configuration/ReadNoReplyReminder.vue +++ b/packages/ui/src/renderer/src/page/Configuration/ReadNoReplyReminder.vue @@ -11,8 +11,34 @@ >编辑Cookie - - 当发现已读不回的Boss时,将向Boss发出“[盼回复]”表情 + + +
+ + “[盼回复]” 表情 + +
+ + 由 AI(根据你的简历及和当前Boss聊天的上下文)生成的内容 + +
+
+
+ + + 没有密钥?点击此处申请一个吧 + + { const conf = res.config['boss.json']?.autoReminder || {} conf.throttleIntervalMinutes = conf.throttleIntervalMinutes ?? 10 conf.rechatLimitDay = conf.rechatLimitDay ?? 21 + conf.geminiApiKey = conf.geminiApiKey ?? '' + conf.rechatContentSource = conf.rechatContentSource ?? 1 formContent.value.autoReminder = conf }) @@ -100,6 +130,10 @@ const formRules = { cb() } } + }, + geminiApiKey: { + required: true, + message: '请输入 Gemini API Key' } } @@ -153,6 +187,10 @@ const rechatLimitDateString = computed(() => { +currentStamp.value - formContent.value.autoReminder.rechatLimitDay * 24 * 60 * 60 * 1000 ).format('YYYY-MM-DD HH:mm:ss') }) + +const goToGeminiNanoApiKeyPage = () => { + electron.ipcRenderer.send('open-external-link', 'https://aistudio.google.com/app/apikey') +}