Update cache and notify errors help text

- Clarify cache setting is user-level (not global)
- Rename 'Global Cache Setting' to 'User Default Cache Setting'
- Add detailed cache hierarchy explanation
- Add help text for notify_errors explaining behavior
parent 9fd9e770
...@@ -9,18 +9,33 @@ ...@@ -9,18 +9,33 @@
<i class="fas fa-memory me-2"></i>Prompt Cache Settings <i class="fas fa-memory me-2"></i>Prompt Cache Settings
</h2> </h2>
<!-- Global Cache Setting --> <!-- User Default Cache Setting -->
<div style="background: #16213e; border: 2px solid #f39c12; border-radius: 8px; padding: 20px; margin-bottom: 20px;"> <div style="background: #16213e; border: 2px solid #f39c12; border-radius: 8px; padding: 20px; margin-bottom: 20px;">
<h3 style="margin: 0 0 20px 0; color: #f39c12;"> <h3 style="margin: 0 0 20px 0; color: #f39c12;">
<i class="fas fa-globe me-2"></i>Global Cache Setting <i class="fas fa-user-circle me-2"></i>User Default Cache Setting
</h3> </h3>
<div style="background: #1a1a2e; padding: 15px; border-radius: 8px;"> <div style="background: #1a1a2e; padding: 15px; border-radius: 8px; margin-bottom: 15px;">
<div style="display: flex; align-items: center; justify-content: space-between;"> <div style="display: flex; align-items: center; justify-content: space-between;">
<div> <div>
<h5 style="margin: 0 0 5px 0; color: #e0e0e0;">Enable Prompt Caching</h5> <h5 style="margin: 0 0 5px 0; color: #e0e0e0;">Enable Prompt Caching</h5>
<p style="color: #888; margin: 0; font-size: 14px;">Enable/disable prompt caching for all providers and models</p> <p style="color: #888; margin: 0; font-size: 14px;">Enable/disable prompt caching for all your providers and models</p>
</div> </div>
</div>
</div>
<div style="background: #0f2840; padding: 15px; border-radius: 8px; border-left: 3px solid #4a9eff;">
<h5 style="margin: 0 0 10px 0; color: #4a9eff;">
<i class="fas fa-info-circle me-2"></i>Cache Override Hierarchy
</h5>
<p style="color: #a0a0a0; margin: 0; font-size: 13px; line-height: 1.6;">
Settings are applied in this priority order (most specific takes precedence):
<br><strong>1. Model-level setting</strong> → Overrides everything
<br><strong>2. Provider-level setting</strong> → Overrides user default
<br><strong>3. User default</strong> → Applied if no specific setting exists
<br><strong>Default: Enabled</strong> if no settings are configured
</p>
</div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="globalCacheToggle" onchange="setCacheSetting(null, null, this.checked)"> <input class="form-check-input" type="checkbox" id="globalCacheToggle" onchange="setCacheSetting(null, null, this.checked)">
<label class="form-check-label" for="globalCacheToggle"></label> <label class="form-check-label" for="globalCacheToggle"></label>
......
...@@ -108,6 +108,10 @@ function renderRotationDetails(rotationKey) { ...@@ -108,6 +108,10 @@ function renderRotationDetails(rotationKey) {
<input type="checkbox" ${rotation.notifyerrors ? 'checked' : ''} onchange="updateRotation('${rotationKey}', 'notifyerrors', this.checked)"> <input type="checkbox" ${rotation.notifyerrors ? 'checked' : ''} onchange="updateRotation('${rotationKey}', 'notifyerrors', this.checked)">
Notify Errors Notify Errors
</label> </label>
<small style="color: #888; font-size: 12px; display: block;">
When enabled, provider errors will be returned to the client instead of silently failing over to next provider.
Disable this for silent failover without exposing internal errors.
</small>
</div> </div>
<div class="form-group"> <div class="form-group">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment