revert ce6803b0e0
Some checks failed
Build and Push Docker Image / build (push) Failing after 14s

revert Merge branch 'main' of http://gitea.lan/gpatti/MediaLore
This commit is contained in:
2026-04-13 17:03:27 +00:00
parent ce6803b0e0
commit 17155b6810
19 changed files with 223 additions and 1015 deletions

View File

@@ -202,15 +202,3 @@ export function getEffectiveAiConfig(libraryId: string): AiConfig {
promptTranslate: overrides.promptTranslate || global.promptTranslate,
}
}
// ─── AI Max Retries ──────────────────────────────────────────────────────────
export function getAiMaxRetries(): number {
const raw = getSetting('ai_max_retries')
const parsed = parseInt(raw ?? '3', 10)
return Number.isFinite(parsed) && parsed >= 0 ? parsed : 3
}
export function setAiMaxRetries(n: number): void {
setSetting('ai_max_retries', String(Math.max(0, Math.floor(n))))
}