소스 검색

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

快乐的梦鱼 2 주 전
부모
커밋
1af8567809
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/pages/home/chat/dependent/post/components/agent.vue
  2. 1 1
      src/pages/home/chat/dependent/post/components/tbutton.vue

+ 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 = [