-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenwebui-demo.html
More file actions
360 lines (324 loc) · 12.2 KB
/
openwebui-demo.html
File metadata and controls
360 lines (324 loc) · 12.2 KB
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>دمج OpenWebUI - OpenWebUI Integration</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 40px;
text-align: center;
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.header p {
font-size: 1.2em;
opacity: 0.9;
}
.content {
padding: 40px;
}
.section {
margin-bottom: 40px;
}
.section h2 {
color: #667eea;
margin-bottom: 20px;
font-size: 1.8em;
border-bottom: 3px solid #667eea;
padding-bottom: 10px;
}
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.info-card {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 25px;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.info-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.info-card h3 {
color: #667eea;
margin-bottom: 15px;
font-size: 1.3em;
}
.info-card p {
color: #555;
line-height: 1.6;
}
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
margin-top: 20px;
}
.model-card {
background: white;
border: 2px solid #667eea;
border-radius: 10px;
padding: 20px;
transition: all 0.3s;
}
.model-card:hover {
background: #667eea;
color: white;
transform: scale(1.05);
}
.model-card h4 {
margin-bottom: 10px;
font-size: 1.2em;
}
.model-card .badge {
display: inline-block;
background: #28a745;
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 0.8em;
margin-bottom: 10px;
}
.code-block {
background: #2d2d2d;
color: #f8f8f2;
padding: 20px;
border-radius: 10px;
overflow-x: auto;
font-family: 'Courier New', monospace;
margin: 15px 0;
}
.endpoint-list {
list-style: none;
}
.endpoint-list li {
background: #f8f9fa;
padding: 15px;
margin: 10px 0;
border-left: 4px solid #667eea;
border-radius: 5px;
}
.endpoint-list li strong {
color: #667eea;
}
.btn {
display: inline-block;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 15px 30px;
border-radius: 25px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s;
margin: 10px 5px;
border: none;
cursor: pointer;
font-size: 1em;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.status-badge {
display: inline-block;
background: #28a745;
color: white;
padding: 8px 15px;
border-radius: 20px;
font-weight: bold;
margin: 10px 0;
}
.footer {
background: #2d2d2d;
color: white;
text-align: center;
padding: 30px;
}
@media (max-width: 768px) {
.header h1 {
font-size: 1.8em;
}
.content {
padding: 20px;
}
.info-grid, .models-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🚀 دمج OpenWebUI مع النماذج المفتوحة المصدر</h1>
<h2 style="margin-top: 10px;">OpenWebUI Integration with Open-Source AI Models</h2>
<p style="margin-top: 20px;">المؤسس: خليف 'ذيبان' العنزي | القصيم – بريدة – المملكة العربية السعودية</p>
<span class="status-badge">✅ نشط / Active</span>
</div>
<div class="content">
<!-- Status Section -->
<div class="section">
<h2>📊 حالة النظام / System Status</h2>
<div class="info-grid">
<div class="info-card">
<h3>🔗 Webhook URL</h3>
<p><strong>https://wasalstor-web.github.io/AI-Agent-Platform</strong></p>
</div>
<div class="info-card">
<h3>🤖 النماذج المتاحة / Models</h3>
<p><strong>6 نماذج مفتوحة المصدر</strong></p>
<p>6 Open-Source AI Models</p>
</div>
<div class="info-card">
<h3>🔐 المصادقة / Authentication</h3>
<p><strong>JWT Token ✓</strong></p>
<p><strong>API Key ✓</strong></p>
</div>
</div>
</div>
<!-- Models Section -->
<div class="section">
<h2>🤖 النماذج المفعلة / Enabled Models</h2>
<div class="models-grid">
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>LLaMA 3 8B</h4>
<p><strong>المزود:</strong> Meta</p>
<p>نموذج متعدد الأغراض</p>
</div>
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>Qwen 2.5 Arabic</h4>
<p><strong>المزود:</strong> Alibaba</p>
<p>متخصص في اللغة العربية</p>
</div>
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>AraBERT</h4>
<p><strong>المزود:</strong> AUB</p>
<p>نموذج BERT للغة العربية</p>
</div>
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>Mistral 7B</h4>
<p><strong>المزود:</strong> Mistral AI</p>
<p>نموذج متعدد اللغات</p>
</div>
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>DeepSeek Coder</h4>
<p><strong>المزود:</strong> DeepSeek</p>
<p>متخصص في توليد الأكواد</p>
</div>
<div class="model-card">
<span class="badge">✓ نشط</span>
<h4>Phi-3 Mini</h4>
<p><strong>المزود:</strong> Microsoft</p>
<p>نموذج مدمج وفعال</p>
</div>
</div>
</div>
<!-- Endpoints Section -->
<div class="section">
<h2>🔗 نقاط الاستقبال / API Endpoints</h2>
<ul class="endpoint-list">
<li>
<strong>POST</strong> /webhook/chat
<p>إرسال رسالة للمحادثة / Send chat message</p>
</li>
<li>
<strong>GET</strong> /webhook/status
<p>فحص حالة النظام / Check system status</p>
</li>
<li>
<strong>GET</strong> /api/models
<p>الحصول على قائمة النماذج / Get models list</p>
</li>
<li>
<strong>GET</strong> /webhook/info
<p>معلومات الدمج / Integration information</p>
</li>
<li>
<strong>GET</strong> /api/docs
<p>التوثيق التفاعلي / Interactive documentation</p>
</li>
</ul>
</div>
<!-- Example Usage -->
<div class="section">
<h2>💻 مثال الاستخدام / Usage Example</h2>
<p>إرسال رسالة باللغة العربية إلى نموذج Qwen:</p>
<div class="code-block">
curl -X POST http://localhost:8080/webhook/chat \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "مرحباً، كيف يمكنك مساعدتي؟",
"model": "qwen-2.5-arabic"
}'
</div>
<p>إرسال رسالة بالإنجليزية إلى نموذج LLaMA 3:</p>
<div class="code-block">
curl -X POST http://localhost:8080/webhook/chat \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hello! Can you help me?",
"model": "llama-3-8b"
}'
</div>
</div>
<!-- Quick Links -->
<div class="section" style="text-align: center;">
<h2>🔗 روابط سريعة / Quick Links</h2>
<a href="https://wasalstor-web.github.io/AI-Agent-Platform/" class="btn" target="_blank">
🌐 الموقع الرئيسي / Main Site
</a>
<a href="http://localhost:8080/api/docs" class="btn" target="_blank">
📚 API Documentation
</a>
<a href="https://github.com/wasalstor-web/AI-Agent-Platform" class="btn" target="_blank">
💻 GitHub Repository
</a>
<a href="OPENWEBUI_INTEGRATION.md" class="btn" target="_blank">
📖 دليل الاستخدام / User Guide
</a>
</div>
</div>
<div class="footer">
<p>© 2025 خليف 'ذيبان' العنزي | AI-Agent-Platform</p>
<p style="margin-top: 10px;">القصيم – بريدة – المملكة العربية السعودية</p>
<p style="margin-top: 10px; opacity: 0.7;">تاريخ النشر: 2025-10-20 | الإصدار: 1.0.0</p>
</div>
</div>
</body>
</html>