fix: clear token usage when stoping chat
This commit is contained in:
@@ -93,6 +93,7 @@ export default function useChatCompletion(
|
||||
const handleStopConversation = () => {
|
||||
controllerRef.current?.abort?.();
|
||||
setLoading(false);
|
||||
setTokenResult(null);
|
||||
};
|
||||
|
||||
const resetPerRequestCache = () => {
|
||||
|
||||
Reference in New Issue
Block a user