V 1.3.0
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Integrations Module
|
||||
|
||||
**Last Verified:** December 25, 2025
|
||||
**Last Verified:** January 1, 2026
|
||||
**Version:** 1.3.0
|
||||
**Status:** ✅ Active
|
||||
**Backend Path:** `backend/igny8_core/modules/integration/` + `backend/igny8_core/business/integration/`
|
||||
**Frontend Path:** `frontend/src/pages/Settings/IntegrationSettings.tsx`
|
||||
@@ -15,13 +16,66 @@
|
||||
| Views | `modules/integration/views.py` | `SiteIntegrationViewSet` |
|
||||
| Webhooks | `modules/integration/webhooks.py` | `wordpress_webhook` |
|
||||
| Services | `business/integration/services/*.py` | Sync services |
|
||||
| AI Core | `ai/ai_core.py` | OpenAI, Anthropic, Runware, Bria clients |
|
||||
| Model Registry | `ai/model_registry.py` | Centralized model configs |
|
||||
| Frontend | `pages/Settings/IntegrationSettings.tsx` | Integration UI |
|
||||
|
||||
---
|
||||
|
||||
## AI Provider Integrations (v1.3.0)
|
||||
|
||||
### Supported Providers
|
||||
|
||||
| Provider | Type | Models | API Key Field |
|
||||
|----------|------|--------|---------------|
|
||||
| OpenAI | Text/Image | gpt-4o, gpt-4o-mini, dall-e-3 | `openai_api_key` |
|
||||
| Anthropic | Text | claude-3-5-sonnet, claude-3-opus, claude-3-haiku | `anthropic_api_key` |
|
||||
| Runware | Image | runware-v2 | `runware_api_key` |
|
||||
| Bria AI | Image | bria-2.3, bria-2.3-fast, bria-2.2 | `bria_api_key` |
|
||||
|
||||
### GlobalIntegrationSettings
|
||||
|
||||
Located in `modules/system/global_settings_models.py`:
|
||||
|
||||
| Field | Type | Purpose |
|
||||
|-------|------|---------|
|
||||
| openai_api_key | CharField | OpenAI API key |
|
||||
| anthropic_api_key | CharField | Anthropic API key (v1.3.0) |
|
||||
| runware_api_key | CharField | Runware API key |
|
||||
| bria_api_key | CharField | Bria AI API key (v1.3.0) |
|
||||
| default_text_model | CharField | Default text model |
|
||||
| default_image_model | CharField | Default image model |
|
||||
| default_image_provider | CharField | openai/runware/bria |
|
||||
|
||||
### Model Registry
|
||||
|
||||
Centralized model configuration with caching:
|
||||
|
||||
```python
|
||||
from igny8_core.ai.model_registry import ModelRegistry
|
||||
|
||||
# Get model config
|
||||
model = ModelRegistry.get_model('gpt-4o-mini')
|
||||
|
||||
# Calculate cost
|
||||
cost = ModelRegistry.calculate_cost('gpt-4o-mini', input_tokens=1000, output_tokens=500)
|
||||
|
||||
# List all models
|
||||
models = ModelRegistry.list_models(model_type='text', provider='openai')
|
||||
```
|
||||
|
||||
### Migrations
|
||||
|
||||
- `0012_add_bria_integration.py` - Adds Bria AI integration settings
|
||||
- `0013_add_anthropic_integration.py` - Adds Anthropic integration settings
|
||||
- `0009_seed_ai_model_configs.py` - Seeds model configurations
|
||||
|
||||
---
|
||||
|
||||
## Purpose
|
||||
|
||||
The Integrations module manages:
|
||||
- AI provider connections (OpenAI, Anthropic, Runware, Bria)
|
||||
- WordPress site connections
|
||||
- Two-way content synchronization
|
||||
- Webhook handling
|
||||
|
||||
Reference in New Issue
Block a user