diff --git a/src/hooks/useSubmit.ts b/src/hooks/useSubmit.ts index 4ae9cc7..3240f41 100644 --- a/src/hooks/useSubmit.ts +++ b/src/hooks/useSubmit.ts @@ -189,7 +189,7 @@ const useSubmit = () => { // update tokens used for generating title if (countTotalTokens) { - const model = currChats[currentChatIndex].config.model; + const model = _defaultChatConfig.model; updateTotalTokenUsed(model, [message], { role: 'assistant', content: title,