coze-dev / coze-dev/coze-loop

[BUG] How should the consumed tokens be counted when the inference is interrupted halfway or canceled

Open
#105 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
5.7k
Forks
795
Avg merge
1d 4h
Merged PRs (30d)
29

Description

### 📋 CheckList

- [x] I have searched existing issues to avoid duplicates
- [x] I am using a recently maintained version of Coze Loop
- [x] I have provided all required information
- [x] I understand this is a bug report and not a feature request
- [x] I have submitted this report in English (otherwise it will not be processed)

### 🐛 Bug Description

How should the consumed tokens be counted when the inference is interrupted halfway or canceled
The current statistics are based on the last output of usage_age. If the inference fails halfway, how can it be completed.

### 🔄 Steps to Reproduce

Do it by yourself !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.