عرض وإدارة نماذج الذكاء الاصطناعي المتاحة والمكونة في OpenClaw.
# عرض جميع النماذج المكونة
openclaw models list
# عرض نماذج مزود محدد
openclaw models list --provider anthropic
openclaw models list --provider openai
# عرض بتنسيق JSON
openclaw models list --json
# عرض تفاصيل نموذج
openclaw models info claude-3-5-sonnet
# معلومات التكلفة
openclaw models info gpt-4 --pricing
# الحدود والقدرات
openclaw models info claude-3-opus --capabilities
# اختبار الاتصال بنموذج
openclaw models test claude-3-5-sonnet
# اختبار مع prompt محدد
openclaw models test gpt-4 --prompt "What is 2+2?"
# اختبار جميع النماذج المكونة
openclaw models test --all
# تعيين النموذج الافتراضي للوكيل
openclaw models set-default claude-3-5-sonnet
# لجلسة محددة
openclaw models set --session agent:main --model gpt-4
# عرض النموذج الحالي
openclaw models current
# عرض تكلفة جميع النماذج
openclaw models list --pricing --json | \
jq '.[] | {name, input_cost, output_cost}'
# مقارنة التكلفة لـ 1M tokens
openclaw models list --pricing | grep -E "claude|gpt"# اختبار سرعة الاستجابة
time openclaw models test claude-3-5-sonnet --prompt "Hi"
# اختبار جميع النماذج وقياس الوقت
for model in claude-3-5-sonnet gpt-4 gemini-2.0-flash; do
echo "Testing $model..."
time openclaw models test $model --prompt "Test"
done
# استخدام نموذج مختلف للمهام البسيطة
openclaw config set model.default claude-3-haiku
openclaw config set model.complex claude-3-opus
# تعيين نموذج خاص لجلسة معينة
openclaw models set --session agent:telegram --model gpt-3.5-turbo
# التحقق من API key
openclaw config show | grep api_key
# اختبار مع verbose
openclaw models test claude-3-5-sonnet --verbose
# التحقق من حالة المزود
openclaw doctor --providers
# عرض النماذج المتاحة
openclaw models list
# التحقق من اسم النموذج الصحيح
openclaw models info --verbose
# تحديث قائمة النماذج
openclaw models refresh