تتضمن منصة وكيل الذكاء الاصطناعي الآن واجهة دردشة تفاعلية مباشرة تسمح لك بالتواصل مع نماذج الذكاء الاصطناعي المختلفة.
The AI Agent Platform now includes an interactive chat interface that allows you to communicate directly with various AI models.
-
🤖 اختيار النماذج / Model Selection: اختر من بين 8 نماذج ذكاء اصطناعي مختلفة
- GPT-3.5 Turbo
- GPT-4
- Claude 3
- LLaMA 3
- Qwen Arabic (مثالي للعربية)
- AraBERT (متخصص في اللغة العربية)
- Mistral
- DeepSeek Coder
-
💬 واجهة محادثة فورية / Real-time Chat Interface
- رسائل مع طوابع زمنية / Messages with timestamps
- تمييز بصري بين رسائل المستخدم والمساعد / Visual distinction between user and assistant messages
- مؤشر كتابة أثناء معالجة الطلبات / Typing indicator during request processing
- تمرير تلقائي للرسائل الجديدة / Auto-scroll to new messages
-
⚙️ إعدادات API قابلة للتخصيص / Customizable API Settings
- تكوين نقطة نهاية API / Configure API endpoint
- دعم مفتاح API الاختياري / Optional API key support
- حفظ الإعدادات محلياً / Save settings locally
-
🌐 دعم ثنائي اللغة / Bilingual Support
- واجهة كاملة بالعربية والإنجليزية / Full Arabic and English interface
- تبديل سلس بين اللغات / Seamless language switching
-
📱 تصميم متجاوب / Responsive Design
- يعمل على الهواتف والأجهزة اللوحية وأجهزة الكمبيوتر / Works on phones, tablets, and computers
- واجهة قابلة للتكيف / Adaptive interface
افتح الموقع في متصفحك: Open the website in your browser:
https://wasalstor-web.github.io/AI-Agent-Platform/
أو محلياً: Or locally:
# من مجلد المشروع / From project folder
python3 -m http.server 8080
# ثم افتح / Then open: http://localhost:8080/index.htmlقبل البدء، تأكد من تشغيل خادم API: Before starting, make sure the API server is running:
cd /home/runner/work/AI-Agent-Platform/AI-Agent-Platform
./start-dlplus.shأو: Or:
cd dlplus
python3 main.pycd api
python3 server.py-
انقر على "⚙️ إعدادات API" في واجهة الدردشة Click on "⚙️ API Settings" in the chat interface
-
أدخل نقطة نهاية API (افتراضياً:
http://localhost:8000/api/process) Enter the API endpoint (default:http://localhost:8000/api/process) -
أدخل مفتاح API إذا كان مطلوباً (اختياري) Enter API key if required (optional)
-
انقر على "حفظ الإعدادات" / Click "Save Settings"
-
اختر النموذج من القائمة المنسدلة Select a model from the dropdown
-
انقر على زر "اتصل" / Click the "Connect" button
-
انتظر حتى يتغير المؤشر إلى "🟢 متصل" Wait for the indicator to change to "🟢 Connected"
-
اكتب رسالتك في مربع النص Type your message in the text box
-
اضغط "إرسال" أو Enter للإرسال Press "Send" or Enter to send
-
شاهد الرد من النموذج Watch for the model's response
نقطة النهاية الافتراضية / Default endpoint:
http://localhost:8000/api/process
تنسيق الطلب / Request format:
{
"command": "مرحباً، كيف حالك؟",
"context": {
"model": "gpt-3.5-turbo",
"language": "ar"
}
}تنسيق الرد / Response format:
{
"success": true,
"response": "مرحباً! أنا بخير، شكراً لسؤالك. كيف يمكنني مساعدتك اليوم؟",
"intent": "greeting",
"executor": "intelligence_core",
"timestamp": "2025-10-20T10:42:00.000Z"
}نقطة النهاية / Endpoint:
http://localhost:5000/api/chat
تنسيق الطلب / Request format:
{
"message": "Hello, how are you?",
"model": "gpt-3.5-turbo"
}الحل / Solution:
-
تأكد من تشغيل خادم API Make sure the API server is running
-
تحقق من نقطة النهاية في الإعدادات Check the endpoint in settings
-
تحقق من جدار الحماية والشبكة Check firewall and network
# اختبر الخادم / Test the server
curl http://localhost:8000/api/healthالحل / Solution:
-
احصل على مفتاح API من إعدادات الخادم Get API key from server settings
-
أدخله في إعدادات API Enter it in API settings
-
احفظ الإعدادات Save settings
الحل / Solution:
-
افتح أدوات المطور (F12) Open Developer Tools (F12)
-
تحقق من وحدة التحكم للأخطاء Check Console for errors
-
تحقق من علامة تبويب الشبكة Check Network tab
-
تحديث الصفحة Refresh the page
عدّل قائمة النماذج في index.html:
Edit the model list in index.html:
<select id="model-select" class="model-dropdown">
<option value="your-model">Your Model Name</option>
<!-- أضف نماذجك هنا / Add your models here -->
</select>عدّل دالة getModelName() في JavaScript:
Edit the getModelName() function in JavaScript:
function getModelName(model) {
const names = {
'your-model': 'Your Model Display Name',
// أضف أسماء النماذج هنا / Add model names here
};
return names[model] || model;
}في index.html، ابحث عن:
In index.html, find:
let apiEndpoint = 'http://localhost:8000/api/process';غيّره إلى نقطة النهاية الخاصة بك: Change it to your endpoint:
let apiEndpoint = 'https://your-api-endpoint.com/api/process';-
لا تشارك مفاتيح API علناً Never share API keys publicly
-
استخدم HTTPS في الإنتاج Use HTTPS in production
-
قم بالتحقق من صحة جميع المدخلات Validate all inputs
-
حدد معدل الطلبات Implement rate limiting
-
استخدم المصادقة المناسبة Use proper authentication
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
app = FastAPI()
class ChatRequest(BaseModel):
command: str
context: dict = {}
@app.post("/api/process")
async def process_command(request: ChatRequest):
try:
# معالجة الأمر / Process the command
response = await your_ai_model.process(
request.command,
model=request.context.get("model", "gpt-3.5-turbo"),
language=request.context.get("language", "en")
)
return {
"success": True,
"response": response,
"timestamp": datetime.now().isoformat()
}
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))const express = require('express');
const app = express();
app.use(express.json());
app.post('/api/process', async (req, res) => {
try {
const { command, context } = req.body;
// معالجة الأمر / Process the command
const response = await yourAIModel.process(
command,
context.model,
context.language
);
res.json({
success: true,
response: response,
timestamp: new Date().toISOString()
});
} catch (error) {
res.status(500).json({
success: false,
error: error.message
});
}
});
app.listen(8000, () => {
console.log('Server running on port 8000');
});- README.md - نظرة عامة على المشروع / Project overview
- OPENWEBUI.md - تكامل OpenWebUI / OpenWebUI integration
- DLPLUS_README.md - نظام DL+ / DL+ System
- DEPLOYMENT.md - دليل النشر / Deployment guide
- افتح Issue على GitHub / Open an Issue on GitHub
- راجع التوثيق / Check the documentation
- تحقق من السجلات / Check the logs
- حفظ سجل المحادثات / Save chat history
- تصدير المحادثات / Export conversations
- دعم الملفات المرفقة / File attachment support
- تكامل الصوت / Voice integration
- وضع الظلام / Dark mode
- اختصارات لوحة المفاتيح / Keyboard shortcuts
- بحث في المحادثات / Search in conversations
- محادثات متعددة / Multiple conversations
نرحب بمساهماتك! يرجى: We welcome your contributions! Please:
- Fork the repository
- إنشاء فرع للميزة / Create a feature branch
- إجراء التغييرات / Make your changes
- إرسال Pull Request / Submit a Pull Request
AI-Agent-Platform © 2025
آخر تحديث / Last Updated: 2025-10-20 الإصدار / Version: 1.0.0