Posthog disable click event and increase timeout for nitro load model request (#1060)

Co-authored-by: Service Account <service@jan.ai>
This commit is contained in:
hiento09 2023-12-18 21:10:36 +07:00 committed by GitHub
parent 7c610517ea
commit 9398b734a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -138,8 +138,8 @@ function loadLLMModel(settings): Promise<Response> {
"Content-Type": "application/json",
},
body: JSON.stringify(settings),
retries: 3,
retryDelay: 500,
retries: 5,
retryDelay: 1000,
}).catch((err) => {
console.error(err);
log.error("error: " + JSON.stringify(err));

View File

@ -2,9 +2,7 @@ import posthog, { Properties } from 'posthog-js'
posthog.init(ANALYTICS_ID, {
api_host: ANALYTICS_HOST,
autocapture: {
url_allowlist: ['./*'],
},
autocapture: false,
})
export const instance = posthog