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:
parent
7c610517ea
commit
9398b734a1
@ -138,8 +138,8 @@ function loadLLMModel(settings): Promise<Response> {
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify(settings),
|
body: JSON.stringify(settings),
|
||||||
retries: 3,
|
retries: 5,
|
||||||
retryDelay: 500,
|
retryDelay: 1000,
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
log.error("error: " + JSON.stringify(err));
|
log.error("error: " + JSON.stringify(err));
|
||||||
|
|||||||
@ -2,9 +2,7 @@ import posthog, { Properties } from 'posthog-js'
|
|||||||
|
|
||||||
posthog.init(ANALYTICS_ID, {
|
posthog.init(ANALYTICS_ID, {
|
||||||
api_host: ANALYTICS_HOST,
|
api_host: ANALYTICS_HOST,
|
||||||
autocapture: {
|
autocapture: false,
|
||||||
url_allowlist: ['./*'],
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export const instance = posthog
|
export const instance = posthog
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user