diff --git a/resources/views/system/ai-config/index.blade.php b/resources/views/system/ai-config/index.blade.php index ca37c24c..791a021f 100644 --- a/resources/views/system/ai-config/index.blade.php +++ b/resources/views/system/ai-config/index.blade.php @@ -485,8 +485,8 @@ function toggleAuthTypeUI(provider, authType) { // Gemini + Vertex AI인 경우 if (provider === 'gemini' && authType === 'vertex_ai') { - data.api_key = ''; // Vertex AI는 API 키 불필요 - data.base_url = null; + data.api_key = 'vertex_ai_service_account'; // Vertex AI는 서비스 계정 사용 (DB NOT NULL 제약) + data.base_url = ''; data.options = { auth_type: 'vertex_ai', project_id: document.getElementById('config-project-id').value, @@ -578,15 +578,8 @@ function toggleAuthTypeUI(provider, authType) { formEl.addEventListener('submit', handleFormSubmit); } - // 모달 외부 클릭 시 닫기 - const modalEl = document.getElementById('config-modal'); - if (modalEl) { - modalEl.addEventListener('click', function(e) { - if (e.target === this) { - window.closeModal(); - } - }); - } + // 모달 외부 클릭 시 닫지 않음 (의도치 않은 닫힘 방지) + // 닫기 버튼이나 취소 버튼으로만 닫을 수 있음 }); })();