690605:1517 ADR-034-134 #11 fix Step 2 #02
CI / CD Pipeline / build (push) Successful in 5m21s
CI / CD Pipeline / deploy (push) Successful in 4m27s

This commit is contained in:
2026-06-05 15:17:54 +07:00
parent 548dba6476
commit 4f90ed688f
2 changed files with 26 additions and 2 deletions
@@ -380,9 +380,11 @@ export class AiBatchProcessor extends WorkerHost {
}
// ดึงบริบท Master data
// Sandbox ใช้ 'default' projectPublicId แต่ไม่ต้องการ override context
// ดังนั้นส่ง undefined เพื่อ skip project lookup
const masterDataContext = await this.aiPromptsService.resolveContext(
activePrompt,
overrideProjPublicId
overrideProjPublicId === 'default' ? undefined : overrideProjPublicId
);
const resolvedPrompt = activePrompt.template
@@ -572,9 +574,11 @@ export class AiBatchProcessor extends WorkerHost {
}
// Resolve context และ run LLM
// Sandbox ใช้ 'default' projectPublicId แต่ไม่ต้องการ override context
// ดังนั้นส่ง undefined เพื่อ skip project lookup
const masterDataContext = await this.aiPromptsService.resolveContext(
targetPrompt,
projectPublicId
projectPublicId === 'default' ? undefined : projectPublicId
);
const resolvedPrompt = targetPrompt.template