Skip to content

Commit

Permalink
Posthog disable click event and increase timeout for nitro load model…
Browse files Browse the repository at this point in the history
… request (#1060)

Co-authored-by: Service Account <[email protected]>
  • Loading branch information
hiento09 and jan-service-account authored Dec 18, 2023
1 parent 7c61051 commit 9398b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions extensions/inference-nitro-extension/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 1 addition & 3 deletions web/utils/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9398b73

Please sign in to comment.