From 099d08e49e2d3d11d63781a2988c05592377937b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 3 Mar 2026 08:09:06 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20[ai]=20Gemini=20=EB=AA=A8=EB=8D=B8=20g?= =?UTF-8?q?emini-2.0-flash=20=E2=86=92=20gemini-2.5-flash=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - config/services.php fallback 기본값 변경 - AiConfig DEFAULT_MODELS 상수 + getActiveGemini() fallback 변경 - NotionService fallback 변경 - AI 설정 관리 UI placeholder/기본값 변경 - Google Cloud AI 가이드 서비스 현황 모델명 변경 - 환경변수 관리 아카데미 예시 변경 --- app/Models/System/AiConfig.php | 4 ++-- app/Services/NotionService.php | 2 +- config/services.php | 2 +- resources/views/academy/env-management.blade.php | 2 +- .../views/google-cloud/ai-guide/index.blade.php | 12 ++++++------ resources/views/system/ai-config/index.blade.php | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Models/System/AiConfig.php b/app/Models/System/AiConfig.php index d771379d..6b9c94ce 100644 --- a/app/Models/System/AiConfig.php +++ b/app/Models/System/AiConfig.php @@ -59,7 +59,7 @@ class AiConfig extends Model * Provider별 기본 모델 */ public const DEFAULT_MODELS = [ - 'gemini' => 'gemini-2.0-flash', + 'gemini' => 'gemini-2.5-flash', 'claude' => 'claude-sonnet-4-20250514', 'openai' => 'gpt-4o', 'gcs' => '-', @@ -94,7 +94,7 @@ public static function getActiveGemini(): ?self $instance = new self; $instance->provider = 'gemini'; $instance->api_key = $apiKey; - $instance->model = config('services.gemini.model', 'gemini-2.0-flash'); + $instance->model = config('services.gemini.model', 'gemini-2.5-flash'); $instance->base_url = config('services.gemini.base_url', 'https://generativelanguage.googleapis.com/v1beta'); $instance->is_active = true; $instance->options = [ diff --git a/app/Services/NotionService.php b/app/Services/NotionService.php index 1ce0f9c4..2f65da6d 100644 --- a/app/Services/NotionService.php +++ b/app/Services/NotionService.php @@ -109,7 +109,7 @@ public function searchWithAi(string $userMessage, array $history = []): array } $geminiApiKey = $gemini->api_key; - $geminiModel = $gemini->model ?: 'gemini-2.0-flash'; + $geminiModel = $gemini->model ?: 'gemini-2.5-flash'; $geminiBaseUrl = $gemini->base_url ?: 'https://generativelanguage.googleapis.com/v1beta'; // 대화 이력 텍스트 변환 diff --git a/config/services.php b/config/services.php index d012d82e..271e2014 100644 --- a/config/services.php +++ b/config/services.php @@ -37,7 +37,7 @@ 'gemini' => [ 'api_key' => env('GEMINI_API_KEY'), - 'model' => env('GEMINI_MODEL', 'gemini-2.0-flash'), + 'model' => env('GEMINI_MODEL', 'gemini-2.5-flash'), 'base_url' => env('GEMINI_BASE_URL', 'https://generativelanguage.googleapis.com/v1beta'), 'project_id' => env('GEMINI_PROJECT_ID', 'codebridge-chatbot'), ], diff --git a/resources/views/academy/env-management.blade.php b/resources/views/academy/env-management.blade.php index 889af3d8..8ad5aec7 100644 --- a/resources/views/academy/env-management.blade.php +++ b/resources/views/academy/env-management.blade.php @@ -522,7 +522,7 @@ class="w-full rounded-xl cursor-pointer academy-img-hover" GEMINI_MODEL ✓ ✓ - gemini-2.0-flash + gemini-2.5-flash VERTEX_AI_PROJECT_ID diff --git a/resources/views/google-cloud/ai-guide/index.blade.php b/resources/views/google-cloud/ai-guide/index.blade.php index 0ddf4bf4..7aff1a9f 100644 --- a/resources/views/google-cloud/ai-guide/index.blade.php +++ b/resources/views/google-cloud/ai-guide/index.blade.php @@ -142,8 +142,8 @@ class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-whi ['sam' => '회의록 자동 생성', 'api' => 'Speech-to-Text', 'model' => 'Chirp 2 / latest_long', 'status' => '운영중', 'file' => 'MeetingMinuteService'], ['sam' => '음성 녹음 분석', 'api' => 'Speech-to-Text', 'model' => 'Chirp 2 + Gemini', 'status' => '운영중', 'file' => 'AiVoiceRecordingService'], ['sam' => '상담 메모 음성 입력', 'api' => 'Speech-to-Text', 'model' => 'V1 latest_long', 'status' => '운영중', 'file' => 'GoogleCloudService'], - ['sam' => '재무 AI 리포트', 'api' => 'Vertex AI (Gemini)', 'model' => 'gemini-2.0-flash', 'status' => '운영중', 'file' => 'AiReportService (API)'], - ['sam' => '명함 OCR', 'api' => 'Gemini API', 'model' => 'gemini-2.0-flash', 'status' => '운영중', 'file' => 'GeminiService'], + ['sam' => '재무 AI 리포트', 'api' => 'Vertex AI (Gemini)', 'model' => 'gemini-2.5-flash', 'status' => '운영중', 'file' => 'AiReportService (API)'], + ['sam' => '명함 OCR', 'api' => 'Gemini API', 'model' => 'gemini-2.5-flash', 'status' => '운영중', 'file' => 'GeminiService'], ['sam' => '오디오 백업/저장', 'api' => 'Cloud Storage', 'model' => 'Standard Class', 'status' => '운영중', 'file' => 'GoogleCloudStorageService'], ['sam' => 'AI 설정 관리', 'api' => '—', 'model' => '다중 Provider', 'status' => '운영중', 'file' => 'AiConfig (Model)'], ['sam' => '토큰/비용 추적', 'api' => '—', 'model' => 'USD/KRW 환산', 'status' => '운영중', 'file' => 'AiTokenHelper'], @@ -407,7 +407,7 @@ class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-whi

테넌트의 비즈니스 데이터(지출, 매출, 매입, 입출금, 카드/계좌, 미수금)를 자동 수집하여 일간/주간/월간 분석 리포트를 생성합니다.

서비스: AiReportService (API 프로젝트)
-
모델: gemini-2.0-flash (Vertex AI)
+
모델: gemini-2.5-flash (Vertex AI)
분석 영역: 지출, 매출, 매입, 입출금, 카드/계좌, 미수금
API: POST /v1/reports/ai/generate
@@ -422,7 +422,7 @@ class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-whi

STT로 변환된 회의 전문을 Gemini에 전달하여 핵심 내용, 결정 사항, 후속 조치 항목을 자동으로 요약합니다.

서비스: MeetingMinuteService (MNG)
-
모델: gemini-2.0-flash
+
모델: gemini-2.5-flash
입력: 화자별 세그먼트 전체 텍스트
출력: ai_summary 필드에 저장
@@ -463,7 +463,7 @@ class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-whi
비용 계산 흐름
AiTokenHelper::record( provider: 'gemini', - model: 'gemini-2.0-flash', + model: 'gemini-2.5-flash', menu: 'meeting-minutes', inputTokens: 1520, outputTokens: 350, @@ -578,7 +578,7 @@ class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-whi
@php $providers = [ - ['name' => 'Gemini', 'provider' => 'gemini', 'model' => 'gemini-2.0-flash', 'use' => '명함 OCR, 회의 요약, 음성 분석', 'color' => 'blue', 'auth' => 'Vertex AI / API Key'], + ['name' => 'Gemini', 'provider' => 'gemini', 'model' => 'gemini-2.5-flash', 'use' => '명함 OCR, 회의 요약, 음성 분석', 'color' => 'blue', 'auth' => 'Vertex AI / API Key'], ['name' => 'Claude', 'provider' => 'claude', 'model' => 'claude-sonnet-4-20250514', 'use' => 'AI 재무 분석 (예비)', 'color' => 'purple', 'auth' => 'API Key'], ['name' => 'OpenAI', 'provider' => 'openai', 'model' => 'gpt-4o', 'use' => '범용 AI (예비)', 'color' => 'green', 'auth' => 'API Key'], ['name' => 'GCS', 'provider' => 'gcs', 'model' => '—', 'use' => '음성 녹음 백업, 파일 저장', 'color' => 'cyan', 'auth' => 'Service Account'], diff --git a/resources/views/system/ai-config/index.blade.php b/resources/views/system/ai-config/index.blade.php index fcc17313..ee174d19 100644 --- a/resources/views/system/ai-config/index.blade.php +++ b/resources/views/system/ai-config/index.blade.php @@ -509,8 +509,8 @@
- -

기본값: gemini-2.0-flash

+ +

기본값: gemini-2.5-flash

@@ -578,7 +578,7 @@ function showToast(message, type = 'info') { } const defaultModels = { - gemini: 'gemini-2.0-flash', + gemini: 'gemini-2.5-flash', claude: 'claude-sonnet-4-20250514', openai: 'gpt-4o' };