bluefly / ai_provider_apple
Apple Foundation Models provider for the Drupal AI platform (llm integration).
0.1.0
2025-07-27 18:00 UTC
Requires
- php: >=8.1
- bluefly/llm: ^0.1
- drupal/advancedqueue: ^1.0
- drupal/ai: ^1.0
- drupal/core: ^10.3 || ^11
- drupal/encrypt: ^3.0
- drupal/key: ^1.14
Suggests
- bluefly/apple-fm: Apple Foundation Models JavaScript bridge for enhanced integration
This package is auto-updated.
Last update: 2025-08-04 12:14:22 UTC
README
Repository Information
- Type: Drupal Module (Git Submodule)
- GitLab URL: https://gitlab.bluefly.io/llm/ai_provider_apple
- Submodule Path: web/modules/custom/ai_provider_apple
- Local Path: /Users/flux423/Sites/LLM/llm-platform/web/modules/custom/ai_provider_apple
Integration Steps
Navigate to Individual Repository
# This module is a git submodule, work in its individual repo cd /path/to/individual/ai_provider_apple/repository
Copy OpenAPI Specification
cp openapi.yaml ./
Create Contract Testing Structure
mkdir -p tests/src/Functional mkdir -p tests/features
Add PHPUnit Configuration
<!-- phpunit.xml --> <testsuite name="ai_provider_apple API Contract Tests"> <directory>tests/src/Functional</directory> <file>tests/src/Functional/*ApiContractTest.php</file> </testsuite>
Configure JSON:API Entities
# JSON:API is built into Drupal 10 core, just needs configuration drush en rest restui serialization hal -y drush cr
Update GitLab CI
include: - component: gitlab.bluefly.io/llm/gitlab_components/components/ci-cd/drupal/template@latest - component: gitlab.bluefly.io/llm/gitlab_components/components/testing/comprehensive-testing@latest drupal_api_validation: extends: .drupal_base script: - drush en rest restui serialization hal -y - drush cr - vendor/bin/phpunit tests/src/Functional/*ApiContractTest.php
Commit Changes
git add . git commit -m "feat: implement API-first architecture for Drupal module - Add OpenAPI 3.1 specification with JSON:API endpoints - Implement PHPUnit contract tests - Configure REST and JSON:API endpoints - Enable API-first development workflow 🤖 Generated with API-First Transformation Co-Authored-By: Claude <noreply@anthropic.com>" git push origin main
JSON:API Endpoints
- Entities: /jsonapi/ai_provider_apple/ai_provider_apple
- Custom API: /api/v1/ai_provider_apple/*
- Health Check: /api/v1/ai_provider_apple/health
Production Deployment
- Main Platform: https://llm.llm.bluefly.io/api/v1/ai_provider_apple
- JSON:API: https://llm.llm.bluefly.io/jsonapi/ai_provider_apple
- Documentation: https://docs.llm.bluefly.io/api-docs/ai_provider_apple