remove: update_total_token()
All checks were successful
Build static content / build (push) Successful in 8m10s

This commit is contained in:
2024-10-15 18:19:51 +08:00
parent a763355420
commit 6aca74a7b4
4 changed files with 11 additions and 24 deletions

View File

@@ -9,10 +9,8 @@ const AddToolMsg = (props: {
setShowAddToolMsg: Dispatch<StateUpdater<boolean>>;
chatStore: ChatStore;
setChatStore: (cs: ChatStore) => void;
update_total_tokens: () => void;
}) => {
const { setShowAddToolMsg, chatStore, update_total_tokens, setChatStore } =
props;
const { setShowAddToolMsg, chatStore, setChatStore } = props;
const [newToolCallID, setNewToolCallID] = useState("");
const [newToolContent, setNewToolContent] = useState("");
@@ -77,7 +75,6 @@ const AddToolMsg = (props: {
audio: null,
logprobs: null,
});
update_total_tokens();
setChatStore({ ...chatStore });
setNewToolCallID("");
setNewToolContent("");