fix:AI 설정 Vertex AI 저장 오류 및 모달 동작 개선
- api_key NOT NULL 제약 해결 (Vertex AI 모드에서 플레이스홀더 값 사용) - 모달 백그라운드 클릭 시 닫히지 않도록 변경 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
// 모달 외부 클릭 시 닫지 않음 (의도치 않은 닫힘 방지)
|
||||
// 닫기 버튼이나 취소 버튼으로만 닫을 수 있음
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user