From 7b7cebaefdf8f26c4ed6d1e3a77bf9b09dd8a5e3 Mon Sep 17 00:00:00 2001 From: pro Date: Wed, 28 Jan 2026 08:14:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:AI=20=EC=84=A4=EC=A0=95=20Vertex=20AI=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EC=98=A4=EB=A5=98=20=EB=B0=8F=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=EB=8F=99=EC=9E=91=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - api_key NOT NULL 제약 해결 (Vertex AI 모드에서 플레이스홀더 값 사용) - 모달 백그라운드 클릭 시 닫히지 않도록 변경 Co-Authored-By: Claude Opus 4.5 --- resources/views/system/ai-config/index.blade.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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(); - } - }); - } + // 모달 외부 클릭 시 닫지 않음 (의도치 않은 닫힘 방지) + // 닫기 버튼이나 취소 버튼으로만 닫을 수 있음 }); })();