sd
This commit is contained in:
@@ -737,11 +737,20 @@ class IntegrationSettingsViewSet(viewsets.ViewSet):
|
||||
|
||||
config = integration.config or {}
|
||||
|
||||
# Debug: Log what's actually in the config
|
||||
logger.info(f"[get_image_generation_settings] Full config: {config}")
|
||||
logger.info(f"[get_image_generation_settings] Config keys: {list(config.keys())}")
|
||||
logger.info(f"[get_image_generation_settings] model field: {config.get('model')}")
|
||||
logger.info(f"[get_image_generation_settings] imageModel field: {config.get('imageModel')}")
|
||||
|
||||
# Get model - try 'model' first, then 'imageModel' as fallback
|
||||
model = config.get('model') or config.get('imageModel') or 'dall-e-3'
|
||||
|
||||
return Response({
|
||||
'success': True,
|
||||
'config': {
|
||||
'provider': config.get('provider', 'openai'),
|
||||
'model': config.get('model', 'dall-e-3'),
|
||||
'model': model,
|
||||
'image_type': config.get('image_type', 'realistic'),
|
||||
'max_in_article_images': config.get('max_in_article_images', 2),
|
||||
'image_format': config.get('image_format', 'webp'),
|
||||
|
||||
Reference in New Issue
Block a user