Update setup.sh to ask for openai key and email (#38)

This commit is contained in:
Kerem Yilmaz
2024-03-06 15:44:58 -08:00
committed by GitHub
parent abecc4382e
commit 213ef9d325
5 changed files with 34 additions and 6 deletions

View File

@@ -43,9 +43,11 @@ def capture(
if not SettingsManager.get_settings().SKYVERN_TELEMETRY:
return
distinct_id = SettingsManager.get_settings().ANALYTICS_ID
payload: dict[str, Any] = data or {}
try:
posthog.capture(distinct_id=DISTINCT_ID, event=event, properties=payload)
posthog.capture(distinct_id=distinct_id, event=event, properties=payload)
except Exception as e:
payload.update(
{
@@ -53,7 +55,7 @@ def capture(
}
)
posthog.capture(
distinct_id=DISTINCT_ID,
distinct_id=distinct_id,
event="failure",
properties=payload,
)