{% extends "base.html" %} {% block title %}User Dashboard - AISBF{% endblock %} {% 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 /api/user/models

List all models from your providers, rotations, and autoselects

Your Providers

GET /api/user/providers

List all your configured providers

Your Rotations

GET /api/user/rotations

List all your configured rotations

Your Autoselects

GET /api/user/autoselects

List all your configured autoselects

Your Chat Completions

POST /api/user/chat/completions

Send chat requests using your configurations

Example model formats:

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

MCP Tools

GET /mcp/tools

List available MCP tools for your configurations

POST /mcp/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

{{ 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
{% endblock %}