alexbaldo/laravel-ai
A Laravel package that simplifies adding AI features to your app, providing an easy integration layer for AI providers and models with configurable support for common AI workflows.
moderation argument to Laravel\Ai\Providers\Tools\ImageGeneration and threads it through PendingImageGeneration::moderation() → ImageProvider::image() → ImageGateway::generateImage() → GeneratesImagesViaResponses::generateImageViaResponses(). This mirrors the existing quality pattern and is a small, additive extension of the current provider/model abstraction.image_generation tool can opt in with ->moderation(...) when needed; omitting it preserves prior behavior and lets OpenAI apply its default.moderation: 'low' for gpt-image* models. This creates path- and provider-specific semantics that product/compliance owners should understand before relying on moderation behavior.'auto' default acceptable? What is our policy when a provider silently ignores moderation? How do we verify the moderation value actually sent and echoed by the provider? Should we wrap the package to enforce consistent defaults across gateways? Are there roadmap plans for provider parity or clearer capability declarations?^0.12.3, run the existing test suite, and update image-generation call sites only where explicit moderation is required. Existing applications that omit moderation should continue working unchanged. No database migration is expected.moderation are unaffected. Feature compatibility is uneven across gateways: only the OpenAI Responses path applies the value. The classic OpenAI Images API continues its separate moderation: 'low' behavior for gpt-image* models. Confirm PHP/Laravel version constraints from the package before rollout.moderation only when supplied. 4) Test unsupported gateways and the fake gateway to confirm expected ignore behavior. 5) Roll out behind a config flag or conditional only if moderation policy is safety-critical. 6) Document path-specific behavior for engineering and support teams.quality implementation pattern and is additive. The main maintenance burden is documentation: teams must know that moderation is honored only by the Responses path and ignored by other gateways.'low' for gpt-image* models. Provide a support runbook that maps provider/path to moderation behavior and states when the package default is to omit the field.'auto' on the Responses path versus the classic path’s forced 'low' can produce inconsistent outcomes. The fake gateway may not exercise provider-specific moderation behavior in tests.How can I help you explore Laravel packages today?