This commit is contained in:
IGNY8 VPS (Salman)
2025-12-20 19:49:57 +00:00
parent 3283a83b42
commit 9e8ff4fbb1
18 changed files with 797 additions and 828 deletions

View File

@@ -411,23 +411,24 @@ export default function Integration() {
if (integrationId === 'openai') {
return [
{ label: 'App Name', value: 'OpenAI API' },
{ label: 'API Key', value: config.apiKey ? `${config.apiKey.substring(0, 20)}...` : 'Not configured' },
{ label: 'Model', value: config.model || 'Not set' },
{ label: 'Model', value: config.model || 'gpt-4o-mini' },
{ label: 'Status', value: config.using_global ? 'Using platform defaults' : 'Custom settings' },
];
} else if (integrationId === 'runware') {
return [
{ label: 'App Name', value: 'Runware API' },
{ label: 'API Key', value: config.apiKey ? `${config.apiKey.substring(0, 20)}...` : 'Not configured' },
{ label: 'Status', value: config.using_global ? 'Using platform defaults' : 'Custom settings' },
];
} else if (integrationId === 'image_generation') {
const service = config.service || 'openai';
const modelDisplay = service === 'openai'
? (config.model || 'Not set')
: (config.runwareModel || 'Not set');
? (config.model || config.imageModel || 'dall-e-3')
: (config.runwareModel || 'runware:97@1');
return [
{ label: 'Service', value: service === 'openai' ? 'OpenAI' : 'Runware' },
{ label: 'Service', value: service === 'openai' ? 'OpenAI DALL-E' : 'Runware' },
{ label: 'Model', value: modelDisplay },
{ label: 'Status', value: config.using_global ? 'Using platform defaults' : 'Custom settings' },
];
}
return [];