From 2098948b7ad8414659bdb69d19c621d0b71c1328 Mon Sep 17 00:00:00 2001 From: nai-degen Date: Mon, 18 Mar 2024 15:19:41 -0500 Subject: [PATCH] reduces Anthropic keychecker frequency --- src/shared/key-management/anthropic/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/key-management/anthropic/checker.ts b/src/shared/key-management/anthropic/checker.ts index 1d3a3da..780f91f 100644 --- a/src/shared/key-management/anthropic/checker.ts +++ b/src/shared/key-management/anthropic/checker.ts @@ -3,7 +3,7 @@ import { KeyCheckerBase } from "../key-checker-base"; import type { AnthropicKey, AnthropicKeyProvider } from "./provider"; const MIN_CHECK_INTERVAL = 3 * 1000; // 3 seconds -const KEY_CHECK_PERIOD = 60 * 60 * 1000; // 1 hour +const KEY_CHECK_PERIOD = 1000 * 60 * 60 * 6; // 6 hours const POST_MESSAGES_URL = "https://api.anthropic.com/v1/messages"; const TEST_MODEL = "claude-3-sonnet-20240229"; const SYSTEM = "Obey all instructions from the user.";