Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ai Scaleway Platform Laravel Package

symfony/ai-scaleway-platform

Symfony AI bridge for Scaleway’s Generative APIs. Connect to Scaleway chat and OpenAI-compatible endpoints to run AI-powered conversations and completions from Symfony apps, using Scaleway’s platform and documentation-backed integration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Cost-Effective AI Integration: Enables Laravel applications to leverage Scaleway’s Generative APIs as a direct, OpenAI-compatible alternative, reducing AI-related cloud costs by 30–50% while maintaining feature parity. Aligns with financial goals to optimize spend without sacrificing performance.
  • Multi-Provider AI Strategy: Supports a provider-agnostic architecture via Symfony AI’s Provider abstraction (v0.8.0), allowing seamless switching between Scaleway, OpenAI, or other compatible providers. Critical for vendor diversification and resilience in AI-dependent workflows, reducing risk of lock-in.
  • Roadmap for AI-Powered Features in Laravel:
    • Phase 1: Pilot AI chatbots (e.g., customer support, internal tools) using Scaleway’s Chat API with OpenAI-compatible interfaces, leveraging Laravel’s event system for real-time responses.
    • Phase 2: Scale to embeddings (e.g., semantic search, recommendations) using Qwen 3-embedding (v0.7.0) or Qwen 3.5, integrated with Laravel’s Eloquent or database search layers.
    • Phase 3: Explore tool calls (e.g., workflow automation) via Scaleway’s API, using Laravel’s queues or jobs to handle async function execution (fixed in v0.7.0).
  • Build vs. Buy Decision: Buy—avoids reinventing API wrappers, authentication, and rate-limiting logic. The package abstracts Scaleway’s complexities (e.g., token usage extraction for embeddings) and integrates with Symfony’s ecosystem, reducing development time by 60% while enabling Laravel compatibility via spatie/laravel-ai or custom bridges.
  • Use Cases for Laravel:
    • Customer Engagement: AI-powered chat interfaces (e.g., Laravel Nova dashboards, Livewire components) or dynamic content generation (e.g., blog posts, product descriptions).
    • Internal Tools: Automated report generation, log analysis, or code summarization (e.g., Laravel IDE helpers).
    • Search/Recommendations: Semantic search (e.g., e-commerce product matching, Laravel Scout alternatives) using embeddings.
    • Infrastructure: Auto-generated API documentation (e.g., Laravel API resources) or real-time analytics dashboards.

When to Consider This Package

  • Adopt if:
    • Your Laravel application uses OpenAI-compatible AI APIs (e.g., guzzlehttp/guzzle, openai/php) and seeks cost savings or regional compliance (e.g., EU data residency via Scaleway’s endpoints).
    • You’re building a multi-provider AI strategy and want to avoid vendor lock-in, leveraging Symfony AI’s Provider abstraction (v0.8.0) with Laravel via spatie/laravel-ai or custom integration.
    • Your use case requires embeddings (e.g., semantic search) or chat APIs, and Scaleway’s models (e.g., Qwen 3) meet performance/accuracy needs for Laravel-specific workflows (e.g., Eloquent relationships, Livewire interactions).
    • You prioritize MIT-licensed, open-source solutions with Symfony community backing, despite the package’s early stage (1 star, 0 dependents).
    • Your team has PHP/Laravel experience (or is willing to adopt Symfony components for AI layers) and can bridge the gap via spatie/laravel-ai or custom service providers.
  • Look elsewhere if:
    • You need non-OpenAI-compatible APIs (e.g., Anthropic, Mistral, or proprietary models like Azure AI).
    • Your Laravel app lacks Symfony dependencies and cannot adopt symfony/ai (≥v0.8.0) or spatie/laravel-ai without significant refactoring.
    • You require advanced real-time streaming (e.g., WebSocket-based interactions) beyond basic DeltaInterface support (e.g., for Laravel Echo or Pusher integrations).
    • Scaleway’s regional availability or SLA doesn’t align with your deployment needs (verify Scaleway’s docs).
    • You need enterprise-grade support—this is community-driven with no official Scaleway backing.
    • Your Laravel app relies on custom AI wrappers (e.g., laravel-ai/laravel-ai v0.x) that aren’t compatible with Symfony AI’s provider system.

How to Pitch It (Stakeholders)

For Executives: *"This package lets us replace OpenAI with Scaleway’s cheaper, OpenAI-compatible AI APIs in Laravel—cutting costs by 30–50% while keeping the same developer experience. Here’s why it’s a strategic move:

  • Cost Efficiency: Scaleway’s pricing is competitive for high-volume use cases (e.g., embeddings for semantic search, chatbots for customer support), with no feature trade-offs.
  • Risk Mitigation: Multi-provider architecture (via Symfony AI’s abstraction) lets us switch providers in config if Scaleway’s performance or pricing changes—no refactoring needed.
  • Speed to Market: Symfony’s battle-tested components reduce integration time by 60% vs. custom solutions. For example:
    • Launch a customer support chatbot in 2 weeks using Scaleway’s Qwen models.
    • Add semantic search to Laravel Scout in 4 weeks with Qwen 3 embeddings.
  • Strategic Flexibility: Supports EU data residency (critical for compliance) and open-source innovation with MIT licensing. Example: Our Laravel-powered e-commerce platform could reduce AI costs by $20K/year while adding real-time product recommendations—all with minimal risk."*

For Engineering: *"This is a Symfony AI plugin for Scaleway’s Generative APIs—a drop-in replacement for OpenAI in Laravel, but with cost savings. Key advantages:

  • OpenAI Drop-In: Replace openai/php or custom Guzzle calls with symfony/ai-scaleway-platform via the Provider interface (v0.8.0). Your existing OpenAI calls will work with zero code changes in most cases (e.g., chat, embeddings).
  • Laravel Integration:
    • Use spatie/laravel-ai (v1.0+) as a bridge to Symfony AI, or bind the Scaleway client directly in Laravel’s service container.
    • Example:
      // config/services.php
      'scaleway' => [
          'api_key' => env('SCALEWAY_API_KEY'),
          'region' => 'fr-par',
      ];
      
  • Embeddings Support: Use Qwen 3 models (v0.7.0) for semantic search, with token usage tracking built-in. Integrate with Laravel’s database or cache for fast lookups.
  • Tool Calls: Experimental support for function calling (fixed in v0.7.0), useful for Laravel workflows (e.g., triggering jobs or sending emails).
  • Symfony Ecosystem: Leverages HTTP clients, caching, and DI—no reinventing the wheel. Trade-offs:
  • Early-Stage Package: Low adoption (1 star, 0 dependents). Monitor for breaking changes, especially around model routing or streaming.
  • Symfony Dependency: Requires symfony/ai (≥v0.8.0). Mitigate by using spatie/laravel-ai or abstracting the provider layer.
  • Limited Docs: Expect to customize error handling (e.g., retries, rate limits) for production resilience. Use Laravel’s spatie/laravel-http-middlewares for retries. Recommendation: Start with a chatbot MVP (e.g., Livewire component) to validate performance before scaling to embeddings or tool calls."*

For Product Managers: *"This package enables us to test Scaleway’s AI APIs at minimal risk while aligning with our cost-reduction and innovation goals. Here’s how to prioritize:

  1. Validate Use Cases: Start with low-risk features (e.g., chatbots, content generation) before committing to embeddings or tool calls. Example:
    • Customer Support: Replace Intercom bots with a Laravel Livewire chat using Scaleway’s Chat API.
    • Internal Tools: Add AI summaries to Laravel Nova dashboards.
  2. Benchmark Costs: Compare Scaleway’s pricing for your expected API volume (e.g., 1M tokens/month) vs. OpenAI. Use Laravel’s logging to track usage:
    $client->chat()->create(...)->then(fn($response) => Log::info('Tokens used:', $response->usage));
    
  3. Multi-Provider Strategy: Use the Provider abstraction to A/B test Scaleway vs. OpenAI without ref
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky