-
-
Notifications
You must be signed in to change notification settings - Fork 102
[Platform][Anthropic] Add TokenOutputProcessor
#554
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
[Platform][Anthropic] Add TokenOutputProcessor
#554
Conversation
TokenOutputProcessor
1a33a94
to
92f2ce1
Compare
92f2ce1
to
f42f6f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after PHPStan is happy
@OskarStark I dunno currently how to solve the issue with PHPStan, the issue is exposed #515 (comment) Any advice ? |
src/platform/tests/Bridge/Anthropic/TokenOutputProcessorTest.php
Outdated
Show resolved
Hide resolved
f42f6f4
to
25d85e0
Compare
@nictou-weglot could you rebase your branch, we just merge a fix to makes PHPStan happy even on PRs using freshly added new classes on examples. |
25d85e0
to
8c3ed4e
Compare
Thanks @nictou-weglot for working on this feature, this is much appreciated. |
https://docs.anthropic.com/en/api/messages#response-usage