المؤسس: خليف 'ذيبان' العنزي
الموقع: القصيم – بريدة – المملكة العربية السعودية
التاريخ: 2025-10-20
https://wasalstor-web.github.io/AI-Agent-Platform/
https://wasalstor-web.github.io/AI-Agent-Platform/openwebui-demo.html
https://wasalstor-web.github.io/AI-Agent-Platform
الرابط / URL:
POST https://wasalstor-web.github.io/AI-Agent-Platform/webhook/chat
مثال / Example:
curl -X POST https://wasalstor-web.github.io/AI-Agent-Platform/webhook/chat \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{"message": "مرحباً", "model": "qwen-2.5-arabic"}'الرابط / URL:
GET https://wasalstor-web.github.io/AI-Agent-Platform/webhook/status
الرابط / URL:
GET https://wasalstor-web.github.io/AI-Agent-Platform/api/models
الرابط / URL:
GET https://wasalstor-web.github.io/AI-Agent-Platform/webhook/info
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImIxYTVmNTlkLTdhYjYtNGFkMC1hYjBlLWE5MzQ1MzA2NmUyMyIsImV4cCI6MTc2MzM4MTYyN30.lb3G5Z9Wj8cFRggiqeGPkMlthCP0yinIYjK6LMewwY8
استخدامه / Usage:
-H "Authorization: Bearer YOUR_JWT_TOKEN"sk-3720ccd539704717ba9af3453500fe3c
استخدامه / Usage:
-H "X-API-Key: YOUR_API_KEY"| الاسم / Name | المعرف / ID | المزود / Provider |
|---|---|---|
| LLaMA 3 8B | llama-3-8b |
Meta |
| Qwen 2.5 Arabic | qwen-2.5-arabic |
Alibaba |
| AraBERT | arabert |
AUB |
| Mistral 7B | mistral-7b |
Mistral AI |
| DeepSeek Coder | deepseek-coder |
DeepSeek |
| Phi-3 Mini | phi-3-mini |
Microsoft |
cd /path/to/AI-Agent-Platform
chmod +x deploy-openwebui-integration.sh
./deploy-openwebui-integration.shpython3 openwebui-integration.pysource venv/bin/activate
python3 openwebui-integration.pycurl -X POST http://localhost:8080/webhook/chat \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"message": "ما هو الذكاء الصناعي؟",
"model": "qwen-2.5-arabic"
}'curl -X POST http://localhost:8080/webhook/chat \
-H "X-API-Key: sk-3720ccd539704717ba9af3453500fe3c" \
-H "Content-Type: application/json" \
-d '{
"message": "Explain machine learning",
"model": "llama-3-8b"
}'import requests
url = "http://localhost:8080/webhook/chat"
headers = {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"Content-Type": "application/json"
}
data = {
"message": "مرحباً",
"model": "arabert"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())fetch('http://localhost:8080/webhook/chat', {
method: 'POST',
headers: {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
'Content-Type': 'application/json'
},
body: JSON.stringify({
message: 'مرحباً',
model: 'qwen-2.5-arabic'
})
})
.then(response => response.json())
.then(data => console.log(data));{
"success": true,
"model": "Qwen 2.5 Arabic",
"model_id": "qwen-2.5-arabic",
"response": "مرحباً! أنا نموذج Qwen 2.5 Arabic...",
"timestamp": "2025-10-20T13:15:30.806Z"
}{
"success": false,
"error": "Model not found",
"timestamp": "2025-10-20T13:15:30.806Z"
}curl http://localhost:8080/curl http://localhost:8080/api/models | jqcurl http://localhost:8080/webhook/status | jqcurl http://localhost:8080/webhook/info | jqافتح في المتصفح / Open in browser:
http://localhost:8080/api/docs
| الملف / File | الوصف / Description |
|---|---|
openwebui-integration.py |
السكريبت الرئيسي / Main script |
deploy-openwebui-integration.sh |
سكريبت النشر / Deployment script |
OPENWEBUI_INTEGRATION.md |
التوثيق الكامل / Full documentation |
openwebui-demo.html |
صفحة العرض / Demo page |
.env |
ملف الإعدادات / Configuration file |
start-integration.sh |
سكريبت التشغيل / Startup script |
الحل / Solution:
export PORT=8081
python3 openwebui-integration.pyالحل / Solution: تأكد من استخدام JWT Token أو API Key الصحيح Ensure correct JWT Token or API Key is used
الحل / Solution:
# تحقق من القائمة / Check list
curl http://localhost:8080/api/models | jq '.models[].id'- GitHub: https://github.com/wasalstor-web/AI-Agent-Platform
- التوثيق: https://wasalstor-web.github.io/AI-Agent-Platform/
- Issues: https://github.com/wasalstor-web/AI-Agent-Platform/issues
- ✅ 6 نماذج ذكاء صناعي مفتوحة المصدر
- ✅ مصادقة آمنة عبر JWT و API Key
- ✅ نقاط استقبال Webhooks جاهزة
- ✅ دعم كامل للغة العربية
- ✅ واجهة برمجية موثقة
- ✅ جاهز للاستخدام الفوري
© 2025 خليف 'ذيبان' العنزي
القصيم – بريدة – المملكة العربية السعودية