mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(memory): refine chat topic summary actions
This commit is contained in:
1 parent
fc373bccf2
commit
d6c9d21b1f
5 files changed
+32
-24
No files matched your search
@@ -196,7 +196,7 @@ async function startGeneration() {
|
||||
}
|
||||
}
|
||||
|
||||
async function regenerateDay() {
|
||||
async function generateCurrentDay() {
|
||||
if (!props.dayKey) return
|
||||
actionLoading.value = true
|
||||
try {
|
||||
@@ -330,6 +330,16 @@ onUnmounted(() => {
|
||||
<span v-if="dayKey" class="ml-2 text-[11px] text-gray-400">{{ dayKey }}</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-0.5">
|
||||
<UButton
|
||||
size="xs"
|
||||
color="neutral"
|
||||
variant="ghost"
|
||||
icon="i-heroicons-queue-list"
|
||||
:disabled="Boolean(activeRun)"
|
||||
@click="openCreate"
|
||||
>
|
||||
{{ t('records.topics.batchSummarize') }}
|
||||
</UButton>
|
||||
<UButton
|
||||
v-if="day"
|
||||
icon="i-heroicons-trash"
|
||||
@@ -503,13 +513,10 @@ onUnmounted(() => {
|
||||
icon="i-heroicons-arrow-path"
|
||||
:loading="actionLoading"
|
||||
:disabled="Boolean(activeRun)"
|
||||
@click="regenerateDay"
|
||||
@click="generateCurrentDay"
|
||||
>
|
||||
{{ t('records.topics.updateDay') }}
|
||||
</UButton>
|
||||
<UButton size="xs" color="neutral" variant="ghost" :disabled="Boolean(activeRun)" @click="openCreate">
|
||||
{{ t('records.topics.backfill') }}
|
||||
</UButton>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -524,10 +531,11 @@ onUnmounted(() => {
|
||||
size="sm"
|
||||
color="primary"
|
||||
icon="i-heroicons-sparkles"
|
||||
:loading="actionLoading"
|
||||
:disabled="Boolean(activeRun) || !dayKey"
|
||||
@click="openCreate"
|
||||
@click="generateCurrentDay"
|
||||
>
|
||||
{{ t('records.topics.create') }}
|
||||
{{ t('records.topics.summarizeDay') }}
|
||||
</UButton>
|
||||
</div>
|
||||
</div>
|
||||
@@ -539,7 +547,7 @@ onUnmounted(() => {
|
||||
<template #header>
|
||||
<div class="flex items-center justify-between">
|
||||
<div>
|
||||
<h3 class="text-base font-semibold">{{ t('records.topics.createTitle') }}</h3>
|
||||
<h3 class="text-base font-semibold">{{ t('records.topics.batchSummarizeTitle') }}</h3>
|
||||
<p class="mt-0.5 text-xs text-gray-400">{{ t('records.topics.createDescription') }}</p>
|
||||
</div>
|
||||
<UButton
|
||||
|
||||
@@ -84,13 +84,13 @@
|
||||
"deleteFailed": "Failed to delete topics",
|
||||
"emptyTitle": "No topics for this day",
|
||||
"emptyDescription": "AI reads the conversation by calendar day and reconnects the same discussion when it interleaves with others or resumes later. Usage is consumed only when you start it.",
|
||||
"create": "Create topics",
|
||||
"createTitle": "Create chat topics",
|
||||
"batchSummarize": "Batch summarize",
|
||||
"batchSummarizeTitle": "Batch summarize topics",
|
||||
"summarizeDay": "Summarize this day's topics",
|
||||
"createDescription": "Process through the last day in the chat from your selected starting point. You can pause and resume at any time.",
|
||||
"start": "Start",
|
||||
"noMessages": "No messages in range",
|
||||
"updateDay": "Update day",
|
||||
"backfill": "Backfill earlier dates",
|
||||
"pause": "Pause",
|
||||
"resume": "Resume",
|
||||
"progress": "{completed}/{total} days completed",
|
||||
@@ -102,7 +102,7 @@
|
||||
"deleteDescription": "This removes only the AI-derived result for this day, not the chat records. You can recreate it later.",
|
||||
"range": {
|
||||
"current": "From viewed day",
|
||||
"currentDescription": "Process from {date} through the last chat day. Recommended",
|
||||
"currentDescription": "Process from {date} through the last chat day",
|
||||
"custom": "Choose start date",
|
||||
"customDescription": "Process from a selected date through the last chat day",
|
||||
"today": "Start today",
|
||||
|
||||
@@ -84,13 +84,13 @@
|
||||
"deleteFailed": "トピックを削除できませんでした",
|
||||
"emptyTitle": "この日のトピックはまだありません",
|
||||
"emptyDescription": "AI が暦日ごとに会話を読み、別の話題を挟んだり時間を置いて再開した同じ話題をまとめます。開始したときだけ利用枠を消費します。",
|
||||
"create": "トピックを作成",
|
||||
"createTitle": "チャットのトピックを作成",
|
||||
"batchSummarize": "一括要約",
|
||||
"batchSummarizeTitle": "トピックを一括要約",
|
||||
"summarizeDay": "この日のトピックをまとめる",
|
||||
"createDescription": "選択した開始地点からチャット記録の最終日まで処理します。いつでも一時停止・再開できます。",
|
||||
"start": "作成を開始",
|
||||
"noMessages": "範囲内にメッセージがありません",
|
||||
"updateDay": "この日を更新",
|
||||
"backfill": "過去の日付を追加",
|
||||
"pause": "一時停止",
|
||||
"resume": "再開",
|
||||
"progress": "{completed}/{total} 日完了",
|
||||
@@ -102,7 +102,7 @@
|
||||
"deleteDescription": "この日の AI 派生結果だけを削除し、チャット履歴は削除しません。後から再作成できます。",
|
||||
"range": {
|
||||
"current": "表示中の日から",
|
||||
"currentDescription": "{date} からチャット記録の最終日まで処理します(推奨)",
|
||||
"currentDescription": "{date} からチャット記録の最終日まで処理します",
|
||||
"custom": "開始日を選択",
|
||||
"customDescription": "指定した日からチャット記録の最終日まで処理します",
|
||||
"today": "今日から",
|
||||
|
||||
@@ -84,13 +84,13 @@
|
||||
"deleteFailed": "删除话题失败",
|
||||
"emptyTitle": "这一天还没有话题",
|
||||
"emptyDescription": "由 AI 按自然日阅读聊天记录,并把穿插或中断后再次出现的同一讨论归入一个话题。仅在你主动创建时消耗额度。",
|
||||
"create": "创建话题",
|
||||
"createTitle": "创建聊天话题",
|
||||
"batchSummarize": "批量总结",
|
||||
"batchSummarizeTitle": "批量总结话题",
|
||||
"summarizeDay": "总结本日话题",
|
||||
"createDescription": "选择起点后将处理到聊天记录最后一天,可随时暂停并继续。",
|
||||
"start": "开始创建",
|
||||
"noMessages": "范围内没有消息",
|
||||
"updateDay": "更新当天",
|
||||
"backfill": "补充更早日期",
|
||||
"pause": "暂停",
|
||||
"resume": "继续",
|
||||
"progress": "已完成 {completed}/{total} 天",
|
||||
@@ -102,7 +102,7 @@
|
||||
"deleteDescription": "只会删除这一天的 AI 派生结果,不会删除聊天记录;之后可以重新创建。",
|
||||
"range": {
|
||||
"current": "从当前浏览日开始",
|
||||
"currentDescription": "从 {date} 处理到聊天记录最后一天,推荐",
|
||||
"currentDescription": "从 {date} 处理到聊天记录最后一天",
|
||||
"custom": "选择开始日期",
|
||||
"customDescription": "从指定日期处理到聊天记录最后一天",
|
||||
"today": "从今天开始",
|
||||
|
||||
@@ -84,13 +84,13 @@
|
||||
"deleteFailed": "刪除話題失敗",
|
||||
"emptyTitle": "這一天還沒有話題",
|
||||
"emptyDescription": "由 AI 依自然日閱讀聊天紀錄,並將穿插或中斷後再次出現的相同討論歸入一個話題。僅在你主動建立時消耗額度。",
|
||||
"create": "建立話題",
|
||||
"createTitle": "建立聊天話題",
|
||||
"batchSummarize": "批次總結",
|
||||
"batchSummarizeTitle": "批次總結話題",
|
||||
"summarizeDay": "總結本日話題",
|
||||
"createDescription": "選擇起點後會處理到聊天記錄最後一天,可隨時暫停並繼續。",
|
||||
"start": "開始建立",
|
||||
"noMessages": "範圍內沒有訊息",
|
||||
"updateDay": "更新當天",
|
||||
"backfill": "補充更早日期",
|
||||
"pause": "暫停",
|
||||
"resume": "繼續",
|
||||
"progress": "已完成 {completed}/{total} 天",
|
||||
@@ -102,7 +102,7 @@
|
||||
"deleteDescription": "只會刪除這一天的 AI 衍生結果,不會刪除聊天紀錄;之後可以重新建立。",
|
||||
"range": {
|
||||
"current": "從目前瀏覽日開始",
|
||||
"currentDescription": "從 {date} 處理到聊天記錄最後一天,建議使用",
|
||||
"currentDescription": "從 {date} 處理到聊天記錄最後一天",
|
||||
"custom": "選擇開始日期",
|
||||
"customDescription": "從指定日期處理到聊天記錄最後一天",
|
||||
"today": "從今天開始",
|
||||
|
||||
Reference in new issue
Block a user