Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(aio): use secret_key instead of deprecated personal_api_key in prompt snippet (#73429)

Juraj Majerik817c76a214c1
diff --git a/products/ai_observability/frontend/prompts/promptSceneComponents.tsx b/products/ai_observability/frontend/prompts/promptSceneComponents.tsx
index 0a1efda837e4..a78472d07c74 100644
--- a/products/ai_observability/frontend/prompts/promptSceneComponents.tsx
+++ b/products/ai_observability/frontend/prompts/promptSceneComponents.tsx
@@ -448,7 +448,7 @@ from posthog.ai.prompts import Prompts
posthog = Posthog(
'${projectApiKey}',
host='${host}',
- personal_api_key='<personal_api_key>', # scope: llm_prompt:read
+ secret_key='<personal_api_key>', # scope: llm_prompt:read
)
prompts = Prompts(posthog)