From 3083317bda9aaa887f26079d287dd2d175fe8806 Mon Sep 17 00:00:00 2001 From: patcher99 Date: Sun, 24 Mar 2024 13:21:10 +0530 Subject: [PATCH] update cohere --- src/providers/cohere.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/cohere.js b/src/providers/cohere.js index 7f640c5..851027b 100644 --- a/src/providers/cohere.js +++ b/src/providers/cohere.js @@ -128,7 +128,7 @@ export default function initCohere({ prompt: prompt, promptTokens: response.meta["billed_units"]["output_tokens"], completionTokens: response.meta["billed_units"]["input_tokens"], - totalTokens: response.token_count["billed_units"], + totalTokens: response.token_count["billed_tokens"], response: response.text, };