增加claude的count_token路由,在分布式部署下支持claude code#915
Open
liuhetian wants to merge 1 commit intoMartialBE:mainfrom
Open
增加claude的count_token路由,在分布式部署下支持claude code#915liuhetian wants to merge 1 commit intoMartialBE:mainfrom
liuhetian wants to merge 1 commit intoMartialBE:mainfrom
Conversation
|
@liuhetian-t4f is attempting to deploy a commit to the martialbe's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
claude code正式请求之前要请求count_token计算一下input token,似乎还没办法通过 CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 关闭,所以做一个简易版的 count_token 接口
这个问题对于分布式部署的时候会很严重,因为会重定向回master, post降级为get,直接报错, 造成claude code 无限等待
我已确认该 PR 已自测通过