690603:2041 ADR-034-134 #01
CI / CD Pipeline / build (push) Failing after 4m28s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-06-03 20:41:42 +07:00
parent 754d609399
commit 3274dede7a
197 changed files with 1575 additions and 42 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
// File: src/modules/rag/local-llm.service.ts
// Change Log
// - 2026-05-15: แทนที่ cloud LLM API ด้วย Ollama local-only ตาม ADR-023A.
// - 2026-06-03: ADR-034 — เปลี่ยน default fallback จาก gemma4:e4b เป็น typhoon2.5-np-dms:latest
import { Injectable, Logger } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
@@ -26,7 +27,10 @@ export class LocalLlmService {
);
this.ollamaModel = this.configService.get<string>(
'OLLAMA_MODEL_MAIN',
this.configService.get<string>('OLLAMA_RAG_MODEL', 'gemma4:e4b')
this.configService.get<string>(
'OLLAMA_RAG_MODEL',
'typhoon2.5-np-dms:latest'
)
);
this.timeoutMs = this.configService.get<number>('RAG_TIMEOUT_MS', 30000);
}