File size: 12,384 Bytes
47b04e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LM Studios - AI Agent Deployment</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.deployment-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(16, 185, 129, 0.2);
}
.endpoint-url {
font-family: 'Courier New', monospace;
background-color: #1e293b;
border-left: 3px solid #10b981;
}
</style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-6">
<!-- Header -->
<header class="flex justify-between items-center mb-6 border-b border-teal-500 pb-4">
<div class="flex items-center space-x-3">
<i data-feather="cloud" class="w-8 h-8 text-teal-400"></i>
<h1 class="text-2xl font-bold text-teal-400">AI Agent Deployment</h1>
</div>
<button class="text-teal-300 hover:text-white flex items-center">
<i data-feather="settings" class="mr-2"></i> Deployment Settings
</button>
</header>
<!-- Deployment Options -->
<section class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
<div class="deployment-card bg-gray-800/70 p-6 rounded-xl border border-gray-700 transition duration-300">
<div class="flex items-center mb-4">
<div class="bg-teal-900/30 w-10 h-10 rounded-lg flex items-center justify-center mr-4">
<i data-feather="globe" class="text-teal-400"></i>
</div>
<h3 class="text-lg font-bold">API Endpoint</h3>
</div>
<p class="text-gray-300 mb-4">Deploy your agent as a REST API for integration with any application.</p>
<button class="w-full bg-teal-600 hover:bg-teal-500 py-2 rounded-lg font-medium text-sm">
<i data-feather="upload" class="w-4 h-4 mr-2 inline"></i> Deploy as API
</button>
</div>
<div class="deployment-card bg-gray-800/70 p-6 rounded-xl border border-gray-700 transition duration-300">
<div class="flex items-center mb-4">
<div class="bg-teal-900/30 w-10 h-10 rounded-lg flex items-center justify-center mr-4">
<i data-feather="message-square" class="text-teal-400"></i>
</div>
<h3 class="text-lg font-bold">Chat Widget</h3>
</div>
<p class="text-gray-300 mb-4">Embed a chat interface for your agent on any website or platform.</p>
<button class="w-full bg-teal-600 hover:bg-teal-500 py-2 rounded-lg font-medium text-sm">
<i data-feather="code" class="w-4 h-4 mr-2 inline"></i> Get Embed Code
</button>
</div>
<div class="deployment-card bg-gray-800/70 p-6 rounded-xl border border-gray-700 transition duration-300">
<div class="flex items-center mb-4">
<div class="bg-teal-900/30 w-10 h-10 rounded-lg flex items-center justify-center mr-4">
<i data-feather="download" class="text-teal-400"></i>
</div>
<h3 class="text-lg font-bold">Local Package</h3>
</div>
<p class="text-gray-300 mb-4">Download your agent as a Docker container or executable package.</p>
<button class="w-full bg-teal-600 hover:bg-teal-500 py-2 rounded-lg font-medium text-sm">
<i data-feather="package" class="w-4 h-4 mr-2 inline"></i> Export Agent
</button>
</div>
</section>
<!-- Active Deployments -->
<section class="bg-gray-800/70 rounded-xl border border-gray-700 p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold text-teal-300">Active Deployments</h2>
<button class="text-teal-300 hover:text-white flex items-center text-sm">
<i data-feather="refresh-cw" class="w-4 h-4 mr-2"></i> Refresh
</button>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead class="text-left text-gray-400 border-b border-gray-700">
<tr>
<th class="pb-3">Agent</th>
<th class="pb-3">Type</th>
<th class="pb-3">Status</th>
<th class="pb-3">Created</th>
<th class="pb-3">Actions</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-800">
<td class="py-4">
<div class="font-medium">Customer Support Bot</div>
<div class="text-xs text-gray-400 mt-1">v1.2.0</div>
</td>
<td>
<span class="inline-flex items-center">
<i data-feather="globe" class="w-4 h-4 mr-2 text-teal-400"></i>
API
</span>
</td>
<td>
<span class="inline-flex items-center text-green-400">
<i data-feather="check-circle" class="w-4 h-4 mr-1"></i>
Running
</span>
</td>
<td class="text-sm text-gray-400">2 hours ago</td>
<td>
<div class="flex space-x-2">
<button class="text-xs bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded">
<i data-feather="external-link" class="w-3 h-3 mr-1 inline"></i> View
</button>
<button class="text-xs bg-red-900/50 hover:bg-red-800/50 px-3 py-1 rounded">
<i data-feather="trash-2" class="w-3 h-3 mr-1 inline"></i> Delete
</button>
</div>
</td>
</tr>
<tr class="border-b border-gray-800">
<td class="py-4">
<div class="font-medium">Code Assistant</div>
<div class="text-xs text-gray-400 mt-1">v2.1.3</div>
</td>
<td>
<span class="inline-flex items-center">
<i data-feather="message-square" class="w-4 h-4 mr-2 text-teal-400"></i>
Chat Widget
</span>
</td>
<td>
<span class="inline-flex items-center text-green-400">
<i data-feather="check-circle" class="w-4 h-4 mr-1"></i>
Running
</span>
</td>
<td class="text-sm text-gray-400">1 day ago</td>
<td>
<div class="flex space-x-2">
<button class="text-xs bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded">
<i data-feather="external-link" class="w-3 h-3 mr-1 inline"></i> View
</button>
<button class="text-xs bg-red-900/50 hover:bg-red-800/50 px-3 py-1 rounded">
<i data-feather="trash-2" class="w-3 h-3 mr-1 inline"></i> Delete
</button>
</div>
</td>
</tr>
<tr>
<td class="py-4">
<div class="font-medium">Document Analyzer</div>
<div class="text-xs text-gray-400 mt-1">v0.9.5</div>
</td>
<td>
<span class="inline-flex items-center">
<i data-feather="download" class="w-4 h-4 mr-2 text-teal-400"></i>
Local Package
</span>
</td>
<td>
<span class="inline-flex items-center text-yellow-400">
<i data-feather="clock" class="w-4 h-4 mr-1"></i>
Pending
</span>
</td>
<td class="text-sm text-gray-400">5 minutes ago</td>
<td>
<div class="flex space-x-2">
<button class="text-xs bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded" disabled>
<i data-feather="external-link" class="w-3 h-3 mr-1 inline"></i> View
</button>
<button class="text-xs bg-red-900/50 hover:bg-red-800/50 px-3 py-1 rounded">
<i data-feather="trash-2" class="w-3 h-3 mr-1 inline"></i> Cancel
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- API Documentation -->
<section class="bg-gray-800/70 rounded-xl border border-gray-700 p-6">
<h2 class="text-xl font-bold mb-6 text-teal-300">API Documentation</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div>
<h3 class="font-medium mb-3">Base URL</h3>
<div class="endpoint-url p-4 rounded-lg mb-6">
https://api.lmstudios.ai/v1/agents/{agent_id}
</div>
<h3 class="font-medium mb-3">Authentication</h3>
<div class="bg-gray-700 p-4 rounded-lg mb-6">
<p class="text-sm text-gray-300 mb-2">All API requests require an API key:</p>
<div class="endpoint-url p-3 rounded text-sm">
Authorization: Bearer YOUR_API_KEY
</div>
</div>
</div>
<div>
<h3 class="font-medium mb-3">Example Request</h3>
<div class="bg-gray-700 p-4 rounded-lg">
<div class="text-xs text-gray-400 mb-2">POST /chat</div>
<pre class="text-sm text-green-400 overflow-x-auto">
{
"agent_id": "cust-support-123",
"message": "How do I reset my password?",
"session_id": "user-456-session"
}</pre>
<div class="text-xs text-gray-400 mt-4 mb-2">Response</div>
<pre class="text-sm text-green-400 overflow-x-auto">
{
"response": "You can reset your password by...",
"session_id": "user-456-session",
"timestamp": "2023-11-15T14:30:22Z"
}</pre>
</div>
</div>
</div>
</section>
</div>
<script>
// Initialize feather icons
feather.replace();
</script>
</body>
</html> |