Skip to content

Add Bedrock image provider support#3

Open
jaksa-v wants to merge 1 commit intoclinically-au:mainfrom
jaksa-v:codex/bedrock-image-support
Open

Add Bedrock image provider support#3
jaksa-v wants to merge 1 commit intoclinically-au:mainfrom
jaksa-v:codex/bedrock-image-support

Conversation

@jaksa-v
Copy link
Copy Markdown

@jaksa-v jaksa-v commented Apr 4, 2026

Summary

  • expose Bedrock image generation through the Laravel AI provider bridge
  • add Bedrock image model defaults and image-specific request options
  • return the Bedrock provider from Ai::imageProvider('bedrock')

Why

clinically/prism-bedrock already supports Bedrock image generation, but this package does not expose that capability through Laravel AI. As a result, applications have to drop below the Laravel AI layer just to generate Bedrock images.

What changed

  • Made BedrockProvider implement ImageProvider and added the corresponding image gateway traits.
  • Added image model defaults and Bedrock image option mapping in the package config and provider.
  • Implemented BedrockPrismGateway::generateImage() for the Bedrock driver.
  • Added tests covering image provider registration and Titan image option normalization.
  • Updated the Bedrock service provider namespace in tests so the branch remains independently runnable against the current upstream baseline.

Review note

The only overlap with #1 is the minimal Bedrock service provider namespace fix in the tests. This PR does not include the separate Titan embeddings bridge or provider-option merge work.

Verification

  • php vendor/bin/phpunit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant