Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit a3a75ae

Browse files
committed
add posthog to writing assistant
1 parent 25a92c6 commit a3a75ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Writing-Assistant/WritingAssistantFloatingMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { FaMagic } from 'react-icons/fa'
99
import ReactMarkdown from 'react-markdown'
1010
import rehypeRaw from 'rehype-raw'
1111

12+
import posthog from 'posthog-js'
1213
import { ChatHistory, ChatMessageToDisplay, formatOpenAIMessageContentIntoString } from '../Chat/chatUtils'
1314
import useOutsideClick from '../Chat/hooks/use-outside-click'
1415
import { HighlightData } from '../Editor/HighlightExtension'
@@ -182,7 +183,7 @@ const WritingAssistant: React.FC<WritingAssistantProps> = ({
182183
context: [],
183184
})
184185
if (!newChatHistory) return
185-
186+
posthog.capture('submitted_writing_assistant_message')
186187
await window.llm.streamingLLMResponse(defaultLLMName, currentModelConfig, false, newChatHistory)
187188
setLoadingResponse(false)
188189
}

0 commit comments

Comments
 (0)