refact: @/utils/totalCost.tx

This commit is contained in:
2024-10-15 15:07:05 +08:00
parent ad291bd72e
commit 2670183343
5 changed files with 53 additions and 56 deletions

View File

@@ -1,7 +1,7 @@
import { SpeakerWaveIcon } from "@heroicons/react/24/outline";
import { useMemo, useState } from "preact/hooks";
import { addTotalCost } from "@/app";
import { addTotalCost } from "@/utils/totalCost";
import { ChatStore, ChatStoreMessage } from "@/types/chatstore";
import { Message, getMessageText } from "@/chatgpt";