diff --git a/core/.eslintrc.json b/core/.eslintrc.json index ce1bc2575..e541d57c1 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -5,8 +5,18 @@ "project": "./tsconfig.json" }, "rules": { - "quotes": ["warn", "double", {}], + "quotes": ["off", "double", {}], "@typescript-eslint/naming-convention": "off", - "@typescript-eslint/no-floating-promises": "warn" + "@typescript-eslint/no-floating-promises": "off", + "import/order": "off", + "curly": "off", + "@typescript-eslint/semi": "off", + "eqeqeq": "error", + "complexity": ["error", { "max": 38 }], + "max-lines-per-function": ["error", { "max": 996 }], + "max-statements": ["error", { "max": 112 }], + "max-depth": ["error", { "max": 6 }], + "max-nested-callbacks": ["error", { "max": 4 }], + "max-params": ["error", { "max": 11 }] } } diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 38309f36e..cd48ef41b 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -107,7 +107,7 @@ class Anthropic extends BaseLLM { const newpart = { ...part, // If multiple text parts, only add cache_control to the last one - ...(addCaching && contentIdx == message.content.length - 1 + ...(addCaching && contentIdx === message.content.length - 1 ? { cache_control: { type: "ephemeral" } } : {}), };