mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-23 12:44:31 +00:00
Read the _error_retry retry limit from plugin settings instead of using the hardcoded single retry. Add config sanitization, preserve the default retry count in the settings UI, update plugin docs, and cover configured and zero-retry behavior with focused tests.
48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
<html>
|
|
<head>
|
|
<title>Error retry</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div x-data>
|
|
<template x-if="config">
|
|
<div>
|
|
<div class="section-title">Error retry</div>
|
|
<div class="section-description">
|
|
Settings for retrying failed operations.
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Retries</div>
|
|
<div class="field-description">
|
|
Number of retries after an error occurs.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<input type="number" min="0" step="1"
|
|
x-init="if (config.retries === undefined || config.retries === null) config.retries = 1"
|
|
x-model.number="config.retries" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Try clearing embedded media</div>
|
|
<div class="field-description">
|
|
If LiteLLM errors keep happening, the framework can remove embedded media from history and try again to help recover from stuck states.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<label class="toggle">
|
|
<input type="checkbox" x-model="config.try_clear_embeds" x-init="if (config.try_clear_embeds === undefined || config.try_clear_embeds === null) config.try_clear_embeds = true" />
|
|
<span class="toggler"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|