Skip to content

[Bug]: 请求日志中的Token计数全是0 #2

@richtkus

Description

@richtkus

📋 Bug Description

首先,感谢作者的辛苦奉献。

如图
Image
请求日志中的token计数是零。

版本是: crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/claude-code-proxy:latest

🔄 Steps to Reproduce

  1. 正常使用接口请求即可复现

✅ Expected Behavior

  1. 希望能正常计算token的消耗。

❌ Actual Behavior

  1. 实际都是0

📸 Screenshots

No response

🖥️ Environment

Docker (macOS)

📦 Version

latest

🌐 Browser (if applicable)

No response

📝 Logs

ℹ️ Additional Context

No response

✅ Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have provided all the requested information
  • I am willing to help test a fix for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions