Draft
Conversation
axyr
commented
May 30, 2025
|
|
||
| protected function handleMessageStart(array $chunk): null | ||
| { | ||
| // { |
Author
There was a problem hiding this comment.
Not sure how to best store this information.
axyr
commented
May 30, 2025
| ); | ||
| } | ||
|
|
||
| protected function handleReasoningContentBlockDelta(array $reasoningContent): Chunk |
axyr
commented
May 30, 2025
| ); | ||
| } | ||
|
|
||
| protected function handleMetadata(array $chunk): void |
Author
There was a problem hiding this comment.
Not sure what to do with this information.
| 'version' => config('prism.providers.bedrock.version', 'latest'), | ||
| 'credentials' => [ | ||
| 'key' => config('prism.providers.bedrock.api_key', ''), | ||
| 'secret' => config('prism.providers.bedrock.api_secret', ''), |
Contributor
There was a problem hiding this comment.
you'll need to add 'token' => config('prism.providers.bedrock.session_token', ''), to work with sts.
* 'main' of github.com:prism-php/bedrock: fix(converse): parameterless tools (prism-php#28) fix: prism >=v0.77.1 incompatibilities (prism-php#27) # Conflicts: # src/Bedrock.php
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.
I have minimal viable stream working, but only tested with
anthropic.claude-3-5-sonnet-20240620-v1:0.It is far from complete, and it was a bit harder than I expected...
I'm still finding my way around the different schema's and message formats.
I tried to keep things as 'Prism' as possible, but to get the stream even decoding working I had to use the aws sdk client in order to retrieve readable events from
converseStream.Added this WIP PR for first feedback and to 'publish' the work to prevent doing double work if others are also working on this.