revert ce6803b0e0
Some checks failed
Build and Push Docker Image / build (push) Failing after 14s
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:
@@ -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))))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user