Ver código fonte

🎨 优化AI写文提示延时,传递话题参数优化

快乐的梦鱼 2 semanas atrás
pai
commit
1af8567809

+ 1 - 1
src/pages/home/chat/dependent/post/components/agent.vue

@@ -434,7 +434,7 @@ const chatManager = useChat({
     onGetAppendSystemMessages: () => {
       const result = [] as string[];
       result.push('## 编写内容');
-      result.push('用户正在编写话题:' + props.tag);
+      result.push('用户正在编写话题:' + props.tag?.replace('广场', ''));
       if (props.villageInfo) {
         result.push('用户编写内容与此村社有关:' + props.villageInfo.name);
         result.push('地址:' + props.villageInfo.address);

+ 1 - 1
src/pages/home/chat/dependent/post/components/tbutton.vue

@@ -47,7 +47,7 @@ let contentDebounceTimer: ReturnType<typeof setTimeout> | null = null;
 let tipDismissed = false;
 let contentTipIndex = 0;
 
-const IDLE_DELAY = 12000;
+const IDLE_DELAY = 6000;
 const CONTENT_DEBOUNCE_DELAY = 10000;
 
 const contentTips = [