OpenAI-compatible
For any provider that speaks the OpenAI /chat/completions API shape — OpenRouter, Groq, Together AI, Mistral, Azure OpenAI, DeepSeek, and others. You type the base URL yourself.
| Endpoint | Whatever base URL you enter, e.g. https://openrouter.ai/api/v1 |
|---|---|
| Needs a key | Usually yes (provider-dependent) — the field is optional here since some self-hosted OpenAI-compatible servers don't require one |
| Structured output | Attempted via response_format: {type: "json_schema"} where the provider supports it; falls back gracefully otherwise |
Setup
- Get an API key and base URL from your chosen provider's docs.
- In BerryStudio: Settings → AI Provider → choose OpenAI-compatible.
- Enter the base URL and key, fetch or type a model name, then Test Connection.
Because this adapter accepts any URL you type, BerryStudio's CSP allows outbound requests to
https: generally (plus localhost) rather than a short fixed list — see the AI setup overview's security note.متوافق مع OpenAI
لأي مزوّد يتحدث بنفس شكل واجهة /chat/completions الخاصة بـOpenAI — OpenRouter، Groq، Together AI، Mistral، Azure OpenAI، DeepSeek، وغيرها. تكتب العنوان الأساسي بنفسك.
| نقطة النهاية | أي عنوان أساسي تُدخله، مثل https://openrouter.ai/api/v1 |
|---|---|
| يحتاج مفتاحًا | عادةً نعم (يعتمد على المزوّد) — الحقل اختياري هنا لأن بعض خوادم OpenAI المتوافقة ذاتية الاستضافة لا تتطلب مفتاحًا |
| مخرجات منظّمة | تُحاوَل عبر response_format: {type: "json_schema"} حيث يدعمها المزوّد؛ وإلا فتراجع سلس بدونها |
الإعداد
- احصل على مفتاح API وعنوان أساسي من وثائق المزوّد الذي اخترته.
- في BerryStudio: الإعدادات ← مزوّد الذكاء الاصطناعي ← اختر متوافق مع OpenAI.
- أدخل العنوان الأساسي والمفتاح، اجلب أو اكتب اسم نموذج، ثم Test Connection.
بما أن هذا المحوّل يقبل أي عنوان تكتبه، فإن سياسة أمان المحتوى في BerryStudio تسمح بطلبات صادرة إلى
https: عمومًا (إضافة إلى localhost) بدلًا من قائمة قصيرة ثابتة — راجع ملاحظة الأمان في نظرة عامة على إعداد الذكاء الاصطناعي.