mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[PR #142] [MERGED] feat: 实现 Anthropic 兼容的 count_tokens API #274
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/142
Author: @clansty
Created: 12/27/2025
Status: ✅ Merged
Merged: 12/28/2025
Merged by: @justlovemaki
Base:
main← Head:feature/count-tokens-api📝 Commits (2)
537a5d6feat: 实现 Anthropic 兼容的 count_tokens APIbe5b93dfix📊 Changes
3 files changed (+125 additions, -10 deletions)
View changed files
📝
src/adapter.js(+9 -0)📝
src/claude/claude-kiro.js(+67 -0)📝
src/request-handler.js(+49 -10)📄 Description
这个应该能解决 claude code 无法自动 summarize 的问题
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.