{% extends "base.html" %} {% block title %}User Dashboard - AISBF{% endblock %} {% macro format_tokens(value) %} {% if value is none or value == 0 %}0{% else %} {% set val = value | float %} {% if val >= 1000000000 %} {{ "%.2f"|format(val / 1000000000) }}B {% elif val >= 1000000 %} {{ "%.2f"|format(val / 1000000) }}M {% elif val >= 1000 %} {{ "%.2f"|format(val / 1000) }}K {% else %} {{ value }} {% endif %} {% endif %} {% endmacro %} {% block content %}

User Dashboard

Welcome, {{ session.username }}!

{% if success %}
{{ success }}
{% endif %} {% if error %}
{{ error }}
{% endif %}

🔌 Your API Endpoints

Use your API token to access your personal configurations. Include the token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Your Models

GET {{ get_base_url(request) }}/api/u/{{ session.username }}/models

List all models from your providers, rotations, and autoselects

Your Providers

GET {{ get_base_url(request) }}/api/u/{{ session.username }}/providers

List all your configured providers

Your Rotations

GET {{ get_base_url(request) }}/api/u/{{ session.username }}/rotations

List all your configured rotations

Your Autoselects

GET {{ get_base_url(request) }}/api/u/{{ session.username }}/autoselects

List all your configured autoselects

Your Chat Completions

POST {{ get_base_url(request) }}/api/u/{{ session.username }}/chat/completions

Send chat requests using your configurations

Example model formats:

  • user-provider/myprovider/mymodel
  • user-rotation/myrotation
  • user-autoselect/myautoselect

MCP Tools

GET {{ get_base_url(request) }}/mcp/u/{{ session.username }}/tools

List available MCP tools for your configurations

POST {{ get_base_url(request) }}/mcp/u/{{ session.username }}/tools/call

Call MCP tools to manage your configurations

{% if session.role == 'admin' %}

⚡ Admin Access

As an admin user, you also have access to global configurations (providers, rotations, autoselects configured by the admin) in addition to your own user configurations.

Admin model formats:

  • provider/model - global provider
  • rotation/myrotation - global rotation
  • autoselect/myautoselect - global autoselect
{% endif %}

⚠️ Note: Your API token is required for all these endpoints. Manage your tokens in the API Tokens section.

Usage Statistics

Total Tokens Used

{{ format_tokens(usage_stats.total_tokens|default(0)) }}

Requests Today

{{ usage_stats.requests_today|default(0) }}

Active Providers

{{ providers_count|default(0) }}

Active Rotations

{{ rotations_count|default(0) }}

Quick Actions

Recent Activity

{% if recent_activity %} {% for activity in recent_activity %} {% endfor %} {% else %} {% endif %}
Timestamp Provider Model Tokens
{{ activity.timestamp }} {{ activity.provider_id }} {{ activity.model }} {{ activity.token_count }}
No recent activity
{% if current_tier %}

Subscription

{{ current_tier.name }}

{% if current_tier.is_default %} Free Tier {% else %}
{{ currency_symbol }}{{ current_tier.price_monthly }}/month or {{ currency_symbol }}{{ current_tier.price_yearly }}/year
{% endif %}
{% if subscription %}
{{ subscription.status|title }} {% if subscription.expires_at %} Renews: {{ subscription.expires_at }} {% endif %}
{% endif %} {% if not payment_methods or payment_methods|length == 0 %} {% endif %}
{% endif %}
{% endblock %}