Skip to content

uv打开GUI报错 #1044

@nasa565

Description

@nasa565

问题描述 | Problem Description

从日志对象获取 token 使用量返回None而出现空指针异常

日志信息(可选)| Logs (Optional)

Traceback (most recent call last):
  File "videocaptioner/ui/view/llm_logs_interface.py", line 415, in _update_table
    total_tokens = usage.get("total_tokens", 0)
                  ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions