We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef5f9f commit d4dd04aCopy full SHA for d4dd04a
packages/web/src/features/chat/actions.ts
@@ -966,10 +966,13 @@ export const _getAISDKLanguageModelAndOptions = async (config: LanguageModel): P
966
967
const posthog = await createPostHogClient();
968
const distinctId = await tryGetPostHogDistinctId();
969
- const model = withTracing(_model, posthog, {
970
- posthogDistinctId: distinctId,
971
- posthogPrivacyMode: env.SOURCEBOT_TELEMETRY_PII_COLLECTION_ENABLED !== 'true',
972
- });
+
+ // Only enable posthog LLM analytics for the ask GH experiment.
+ const model = env.EXPERIMENT_ASK_GH_ENABLED === 'true' ?
+ withTracing(_model, posthog, {
973
+ posthogDistinctId: distinctId,
974
+ }) :
975
+ _model;
976
977
return {
978
model,
0 commit comments