fix: error

This commit is contained in:
tomasz-io 2025-03-20 09:37:01 -07:00
parent 844e0e4872
commit 4c7f918266
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@
"@typescript-eslint/no-floating-promises": "off",
"import/order": "off",
"curly": "off",
"@typescript-eslint/semi": "off"
"@typescript-eslint/semi": "off",
"eqeqeq": "error"
}
}

View file

@ -86,7 +86,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" } }
: {}),
};