Skip to content

Commit ebcfadf

Browse files
committed
add connection analytics
1 parent 1f44bf9 commit ebcfadf

File tree

1 file changed

+3
-3
lines changed
  • apps/desktop/src/components/editor-area

1 file changed

+3
-3
lines changed

apps/desktop/src/components/editor-area/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ export function useEnhanceMutation({
253253
},
254254
);
255255

256-
// console.log("systemMessage", systemMessage);
257-
// console.log("userMessage", userMessage);
258-
259256
const abortController = new AbortController();
260257
const abortSignal = AbortSignal.any([abortController.signal, AbortSignal.timeout(60 * 1000)]);
261258
setEnhanceController(abortController);
@@ -266,10 +263,13 @@ export function useEnhanceMutation({
266263
: provider.languageModel("defaultModel");
267264

268265
if (sessionId !== onboardingSessionId) {
266+
const { type } = await connectorCommands.getLlmConnection();
267+
269268
analyticsCommands.event({
270269
event: "normal_enhance_start",
271270
distinct_id: userId,
272271
session_id: sessionId,
272+
connection_type: type,
273273
});
274274
}
275275

0 commit comments

Comments
 (0)