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

@@ -26,7 +26,6 @@ interface Props {
messageIndex: number;
chatStore: ChatStore;
setChatStore: (cs: ChatStore) => void;
update_total_tokens: () => void;
}
export default function Message(props: Props) {
@@ -205,7 +204,6 @@ export default function Message(props: Props) {
className="input input-bordered input-xs w-16"
onChange={(event: any) => {
chat.token = parseInt(event.target.value);
props.update_total_tokens();
setChatStore({ ...chatStore });
}}
/>