fix: error
This commit is contained in:
parent
844e0e4872
commit
4c7f918266
2 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" } }
|
||||
: {}),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue