Skip to content

Commit 3fdd7a6

Browse files
Alexey Panfilovclaude
andcommitted
fix: increase classifier timeout from 5s to 15s
gemma3:1b on CPU can take >5s on cold inference or when CPU is busy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db62f6e commit 3fdd7a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/llm/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func (r *Router) classify(ctx context.Context, text string) int {
417417
if provider == nil {
418418
return 2
419419
}
420-
classifierCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
420+
classifierCtx, cancel := context.WithTimeout(ctx, 15*time.Second)
421421
defer cancel()
422422

423423
// Truncate to save tokens — classifier only needs the beginning to judge complexity.

0 commit comments

Comments
 (0)