Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: fix conflict revert analytic

Faisal Amir462b05e612de
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx
index 0647bb0a8..744ff5bab 100644
--- a/web-app/src/containers/ChatInput.tsx
+++ b/web-app/src/containers/ChatInput.tsx
@@ -48,7 +48,7 @@ import { open } from '@tauri-apps/plugin-dialog'
import { toast } from 'sonner'
import { PlatformFeatures } from '@/lib/platform/const'
import { PlatformFeature } from '@/lib/platform/types'
-import posthog from 'posthog-js'
+
import {
Attachment,
createImageAttachment,
@@ -226,18 +226,6 @@ const ChatInput = ({
setMessage('')
- // Track message send event with PostHog (only if product analytics is enabled)
- if (productAnalytic && selectedModel && selectedProvider) {
- try {
- posthog.capture('message_sent', {
- model_provider: selectedProvider,
- model_id: selectedModel.id,
- })
- } catch (error) {
- console.debug('Failed to track message send event:', error)
- }
- }
-
// Callback to update attachment processing state
const updateAttachmentProcessing = (
fileName: string,