690607:2321 ADR-035-135 #07
CI / CD Pipeline / build (push) Successful in 5m20s
CI / CD Pipeline / deploy (push) Successful in 6m42s

This commit is contained in:
2026-06-07 23:21:55 +07:00
parent 16aab2279c
commit a0f77ad121
4 changed files with 97 additions and 48 deletions
@@ -208,7 +208,7 @@ export class AiBatchProcessor extends WorkerHost {
model?: string;
system?: string;
format?: 'json';
ollamaOptions?: { num_ctx?: number };
ollamaOptions?: { num_ctx?: number; num_predict?: number };
}
): Promise<{
extractedMetadata: Record<string, unknown>;
@@ -533,7 +533,7 @@ export class AiBatchProcessor extends WorkerHost {
{
format: 'json',
timeoutMs: 120000,
ollamaOptions: { num_ctx: 8192 }, // รองรับ prompt ยาว 18k+ chars
ollamaOptions: { num_ctx: 8192, num_predict: 4096 }, // num_predict ป้องกัน output ถูก truncate
}
);
await this.aiPromptsService.saveTestResult(
@@ -737,7 +737,7 @@ export class AiBatchProcessor extends WorkerHost {
{
format: 'json',
timeoutMs: 120000,
ollamaOptions: { num_ctx: 8192 }, // รองรับ prompt ยาว 18k+ chars
ollamaOptions: { num_ctx: 8192, num_predict: 4096 }, // num_predict ป้องกัน output ถูก truncate
}
);