Skip to content

Commit

Permalink
Update OpenAI API status display to handle unknown status and improve…
Browse files Browse the repository at this point in the history
… visual indicators
  • Loading branch information
DonnieBLT committed Jan 3, 2025
1 parent f85f02d commit f0b69ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/templates/status_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ <h3>Redis Stats</h3>
<div class="status-card">
<h3>OpenAI API</h3>
<div class="status-item">
<div class="status-dot {% if status.openai %}green{% else %}red{% endif %}"></div>
{% if status.openai %}
<div class="status-dot {% if status.openai == None %}gray{% elif status.openai %}green{% else %}red{% endif %}"></div>
{% if status.openai == None %}
<span>Status Unknown</span>
{% elif status.openai %}
<span>Operational</span>
{% else %}
<span>Not Operational</span>
Expand Down

0 comments on commit f0b69ab

Please sign in to comment.