[PR #142] [MERGED] feat: 实现 Anthropic 兼容的 count_tokens API #274

Closed
opened 2026-02-27 07:18:46 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: feature/count-tokens-api


📝 Commits (2)

  • 537a5d6 feat: 实现 Anthropic 兼容的 count_tokens API
  • be5b93d fix

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/justlovemaki/AIClient-2-API/pull/142 **Author:** [@clansty](https://github.com/clansty) **Created:** 12/27/2025 **Status:** ✅ Merged **Merged:** 12/28/2025 **Merged by:** [@justlovemaki](https://github.com/justlovemaki) **Base:** `main` ← **Head:** `feature/count-tokens-api` --- ### 📝 Commits (2) - [`537a5d6`](https://github.com/justlovemaki/AIClient-2-API/commit/537a5d6b384d33a2a058d3cac0246082e1a934c4) feat: 实现 Anthropic 兼容的 count_tokens API - [`be5b93d`](https://github.com/justlovemaki/AIClient-2-API/commit/be5b93dc93130a5f9b77daa702346bf85cb68c61) fix ### 📊 Changes **3 files changed** (+125 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/adapter.js` (+9 -0) 📝 `src/claude/claude-kiro.js` (+67 -0) 📝 `src/request-handler.js` (+49 -10) </details> ### 📄 Description 这个应该能解决 claude code 无法自动 summarize 的问题 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:18:46 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#274
No description provided.