Skip to content

[Bug]deepseek 代码400错误按照pr8483修复后部分插件出现'NoneType' object has no attribute 'input_tokens'错误 #8605

@ltk415

Description

@ltk415

What happened / 发生了什么

使用deepseek v4 flash作为对话模型,首先出现错误代码400,按照pr8483修复后对话时部分插件出现'NoneType' object has no attribute 'input_tokens'错误

Reproduce / 如何复现?

1.解决deepseek v4 flash 代码400错误
2.自然与ai对话,日志显示'NoneType' object has no attribute 'input_tokens'警告。

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

mac系统,astrbot v4.25.2 ,docker部署napcat与ai在qq对话

OS

macOS

Logs / 报错日志

[2026-06-05 20:13:53.973] [Plug]
[WARN]
[v4.25.2] [astrbot_plugin_livelystate.main:598]: Global observer summarization failed: 'NoneType' object has no attribute 'input_tokens'
[2026-06-05 20:13:54.474] [Plug]
[WARN]
[v4.25.2] [astrbot_plugin_livelystate.main:598]: Global observer summarization failed: 'NoneType' object has no attribute 'input_tokens'

[2026-06-05 16:31:35.884] [Plug]
[ERRO]
[v4.25.2] [learning_style.learning_manager:49]: 分析学习过程中发生错误: 'NoneType' object has no attribute 'input_tokens'

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

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't workingfeature:pluginThe bug / feature is about AstrBot plugin system.priority: p0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions