Repository navigation
失败的模型调用也算进用量 - #110
Merged
Merged
失败的模型调用也算进用量#110
Conversation
初筛、读图或抽取中途失败,或者读了图片却不用再抽取(通知没变)时,已经花掉的用量交不到网站,抓取看板上的用量就少了。 - 调用模型的几步改成往调用方给的列表里加用量,每次调用一返回就加,失败了也留着;附件上不再单独带读图的用量 - 没随初筛或抽取交上来的用量,随 POST /runs 的 usage 交,标明是初筛还是抽取 - 网站在第一次收到这一轮时记进 model_calls,同一轮重交不重复记
同一批里一个先失败、另一个晚点成功时,晚的那次用量会漏掉;System One 回了用量但答案不对时,那次的用量也会漏掉。
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
路线图 #2「失败的模型调用也算进用量」。
改了什么
初筛、读图或抽取中途失败,或者读了图片但通知没变、不用再抽取时,已经花掉的用量交不到网站,抓取看板上的用量就少了(总体设计 §8.6)。
POST /runs的usage交,标明是初筛还是抽取。POST /crawler/runs收usage。第一次收到这一轮时,记进model_calls(snapshot_id为空),抓取看板照常按天、按来源汇总;同一轮重交,不重复记。怎么验证的
pnpm check通过,101 个测试。新测试:一轮带着失败调用的用量交两次,只记一次。./check.sh通过,344 个测试。新测试覆盖:没做的
影响
POST /crawler/runs多了必填的usage,两边一起改了。