Open
Conversation
Bring in 0.3.0 changes
Adds full support for AWS Bedrock as an AI provider with text generation, embeddings, image generation, and speech transcription capabilities. Features: - Text generation with 50+ models (Claude, Titan, Llama, Mistral) - Tool/function calling with multi-turn conversation support - Streaming text generation via Bedrock's converseStream API - Image generation (Nova Canvas, Titan Image, Stability AI) - Speech transcription (Nova Sonic) with diarization - Embeddings (Titan Embed, Cohere Embed) - Support for IAM credentials, bearer tokens, and default credential chain - Comprehensive exception handling and error recovery - Rate limiting via HandlesRateLimiting trait Closes laravel#39
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.
Add AWS Bedrock Provider
This PR adds basic support for AWS Bedrock as an AI provider, enabling access to models from Anthropic, Amazon, Meta, Mistral, and more through a unified interface. This is likely not in a place to be fully merged as it requires further testing but it should help people looking for this in reference to #39, and potentially can serve as a starting point for a full-featured implementation
Features
Text Generation
converseStreamAPIEmbeddings
Image Generation
Speech Transcription
Implementation Details
Authentication
Supports three authentication methods:
AWS_BEARER_TOKEN_BEDROCK)~/.aws/credentials, IAM roles)Tool Calling
maxStepsMessage Formatting
Proper support for:
AssistantMessagewith tool callsToolResultMessagefor tool outputsUserMessagewith document attachmentsConfiguration Example
Usage Example
Dependencies
Adds aws/aws-sdk-php: ^3.339 for AWS SDK integration.