Skip to content

[Bug] 在对话中使用/model切换模型后,模型用量统计错误 #7912

@Megumism

Description

@Megumism

What happened / 发生了什么

2026/4/30 15:20左右将模型由DeepSeek-v4-pro切换到flash,但在当日、分时的统计中,统计的所有token仍全都计入pro名下:
Image

Reproduce / 如何复现?

于2026/4/30在飞书中采用/model命令将模型由DeepSeek-v4-pro切换到flash,由于之后控制台一片空白重启过且log_file_enable: false没有过往日志,以截图作为替代:
Image

查询DeepSeek平台也可以看到确凿使用了flash模型:
Image

因此我认为是AstrBot后台统计有错误,恳请排查修复,谢谢AstrBot开发者的付出!

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

AstrBot版本:v4.23.6
部署方式:雨云服务器应用中心直接安装
大模型提供商:deepseek
消息平台:飞书

OS

Linux

Logs / 报错日志

参考上方

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions