-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claude改用messages API,支持Claude3 #86
Merged
Merged
Conversation
This file contains 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
感谢pr |
实测可以用,不过我没实现图片能力,只支持文字 |
claude现在不需要申请,绑卡预付费就可以用 |
是么 我去看看。信用卡支持国内发行的visa 吗 |
没试不清楚,我用的美国虚拟卡,卡信息填的美国,组织地区和使用地区填的我的oneapi部署所在地日本。 |
噗...登陆封号...😑 |
我被官方文档骗惨! 官方文档里usage在delta里面! 结果实际是在外面 |
确实还有点问题。 是因为结构体写错了。 type ClaudeResponse struct {
Usage `json:"usage,omitempty"`
} 相当于继承了 Usage 结构体。 所以可以直接在 Message下使用 Usage 的字段。 我已经修复了, 并且支持了 |
哇..Claude杀疯了吧... |
Closed
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.
顺便修复解析json到空指针的bug.
至于删除的claude-instant-1(已被claude-instant-1.2替代)和claude-2(已被claude-2.1替代)是否需要重定向以便旧的用户可以兼容,就需要作者您考虑啦