{
  "aboutHtml": "<p>ينشئ Voyage Code 2 تضمينات عددية للشيفرة المصدرية والنصوص المرتبطة بها. وقد صُمم للاسترجاع الدلالي للشيفرة، حيث يصف المطور سلوكًا أو يقدم جزءًا من الشيفرة فيعثر نظام البحث على تنفيذات ذات صلة. وتشمل أمثلة الشركة المصنّعة أسئلة باللغة الطبيعية ومقاطع شيفرة ومزيجًا منهما كمدخلات للبحث.</p><p>استخدمه لبناء تجربة بحث في المستودع تتمحور حول أسئلة تطوير حقيقية. فقد يبحث مطور عن الدالة التي لا تزيل إلا أول محرف يطابق شرطًا وآخر محرف يطابقه، أو عن جزء من مشروع يطبق اجتيازًا معينًا لشجرة. جهّز استعلامات تعبر عن السلوك بدقة، بما فيها الشرط الذي يميز التنفيذ المقصود عن تنفيذ قريب لكنه غير صحيح.</p><p>فهرس الشيفرة بوحدات مفيدة بدلًا من تقسيم كل ملف عند عدد عشوائي من المحارف. احتفظ بتوقيع الدالة وجسمها والشرح ذي الصلة معًا. وعندما تعتمد دالة مساعدة على أنواع أو ثوابت محلية، احتفظ بقدر كافٍ من النص المحيط لفهم غرضها. وخزّن مسارات الملفات ومراجعات المستودع ومواضع المصدر خارج التضمين حتى تفتح النتيجة الشيفرة الأصلية مباشرة.</p><p>يوفر هذا الإصدار نافذة سياق تبلغ 16,000 رمز وينتج تضمينات ذات 1,536 بُعدًا. اضبط سعة فهرس المتجهات لهذا التمثيل، وحافظ على ارتباط تضمينات الاستعلامات والمستندات بالنموذج نفسه. ويمكن لمجموعة مفهرسة أصلًا باستخدام Voyage Code 2 الاحتفاظ بتمثيل استرجاع متسق أثناء تحديث سجلاتها المصدرية. وينبغي التعامل مع الانتقال إلى إصدار تضمين آخر بوصفه ترحيلًا للفهرس، مع مقارنة صريحة على المستودع نفسه.</p><p>لاستعلام باللغة الطبيعية، صف العملية والمدخلات والنتيجة ذات الصلة. ولاستعلام بالشيفرة، أرفق المقطع الذي تريد مطابقة منطقه واشرح أي شرط يهم البحث. فالبحث عن معالجة إعادة المحاولة مثلًا يمكن أن يحدد ما إذا كانت الشيفرة المطلوبة تعيد المحاولة بعد انتهاء مهلة أو بعد رد خطأ كامل. ويجب التحقق من هذا الفرق في المصدر المسترجع قبل استخدامه في تعديل.</p><p>حافظ على قابلية تتبع الوثائق والشيفرة المصدرية عند فهرستهما معًا. فقد يوفر مقطع تفسيري سياقًا مفيدًا، بينما يكون التنفيذ هو المادة التي يحتاج المطور إلى فحصها. ضع تسميات لأنواع السجلات هذه حتى تعرض صفحة البحث الوجهة الصحيحة ويستطيع مساعد البرمجة التمييز بين وصف ومصدر قابل للتنفيذ.</p><p>استخدم المقاطع المسترجعة كسياق للتنقل في المستودع أو اكتشاف التنفيذات أو الخطوة التالية لمساعد برمجي. واحتفظ بالمقطع ذي الصلة كاملًا وموضعه عند تمريره إلى المرحلة التالية. يساعد التشابه على العثور على شيفرة مرشحة؛ أما مراجعة المدخلات الفعلية والآثار الجانبية والعقود فتحدد ما إذا كان المرشح يحل المشكلة الحالية.</p><p>قيّم الاسترجاع على مجموعة أسئلة حقيقية لها إجابات معروفة في المصدر. أدرج دوال تغيرت أسماؤها وتعليقات مضللة وأدوات مساعدة متشابهة ذات حالات حدّية مختلفة واستعلامات تستخدم مفردات غير موجودة في الشيفرة. وتحقق من ظهور التنفيذ المتوقع ضمن النتائج المفيدة ومن توفير المقطع المعروض سياقًا كافيًا لتقييمه. احتفظ بهذه الأسئلة مع نمو المستودع حتى يمكن مقارنة تغييرات الاستخراج أو حدود المقاطع أو الفهرسة باستخدام المهام نفسها.</p>",
  "aboutText": "ينشئ Voyage Code 2 تضمينات عددية للشيفرة المصدرية والنصوص المرتبطة بها. وقد صُمم للاسترجاع الدلالي للشيفرة، حيث يصف المطور سلوكًا أو يقدم جزءًا من الشيفرة فيعثر نظام البحث على تنفيذات ذات صلة. وتشمل أمثلة الشركة المصنّعة أسئلة باللغة الطبيعية ومقاطع شيفرة ومزيجًا منهما كمدخلات للبحث.\n\nاستخدمه لبناء تجربة بحث في المستودع تتمحور حول أسئلة تطوير حقيقية. فقد يبحث مطور عن الدالة التي لا تزيل إلا أول محرف يطابق شرطًا وآخر محرف يطابقه، أو عن جزء من مشروع يطبق اجتيازًا معينًا لشجرة. جهّز استعلامات تعبر عن السلوك بدقة، بما فيها الشرط الذي يميز التنفيذ المقصود عن تنفيذ قريب لكنه غير صحيح.\n\nفهرس الشيفرة بوحدات مفيدة بدلًا من تقسيم كل ملف عند عدد عشوائي من المحارف. احتفظ بتوقيع الدالة وجسمها والشرح ذي الصلة معًا. وعندما تعتمد دالة مساعدة على أنواع أو ثوابت محلية، احتفظ بقدر كافٍ من النص المحيط لفهم غرضها. وخزّن مسارات الملفات ومراجعات المستودع ومواضع المصدر خارج التضمين حتى تفتح النتيجة الشيفرة الأصلية مباشرة.\n\nيوفر هذا الإصدار نافذة سياق تبلغ 16,000 رمز وينتج تضمينات ذات 1,536 بُعدًا. اضبط سعة فهرس المتجهات لهذا التمثيل، وحافظ على ارتباط تضمينات الاستعلامات والمستندات بالنموذج نفسه. ويمكن لمجموعة مفهرسة أصلًا باستخدام Voyage Code 2 الاحتفاظ بتمثيل استرجاع متسق أثناء تحديث سجلاتها المصدرية. وينبغي التعامل مع الانتقال إلى إصدار تضمين آخر بوصفه ترحيلًا للفهرس، مع مقارنة صريحة على المستودع نفسه.\n\nلاستعلام باللغة الطبيعية، صف العملية والمدخلات والنتيجة ذات الصلة. ولاستعلام بالشيفرة، أرفق المقطع الذي تريد مطابقة منطقه واشرح أي شرط يهم البحث. فالبحث عن معالجة إعادة المحاولة مثلًا يمكن أن يحدد ما إذا كانت الشيفرة المطلوبة تعيد المحاولة بعد انتهاء مهلة أو بعد رد خطأ كامل. ويجب التحقق من هذا الفرق في المصدر المسترجع قبل استخدامه في تعديل.\n\nحافظ على قابلية تتبع الوثائق والشيفرة المصدرية عند فهرستهما معًا. فقد يوفر مقطع تفسيري سياقًا مفيدًا، بينما يكون التنفيذ هو المادة التي يحتاج المطور إلى فحصها. ضع تسميات لأنواع السجلات هذه حتى تعرض صفحة البحث الوجهة الصحيحة ويستطيع مساعد البرمجة التمييز بين وصف ومصدر قابل للتنفيذ.\n\nاستخدم المقاطع المسترجعة كسياق للتنقل في المستودع أو اكتشاف التنفيذات أو الخطوة التالية لمساعد برمجي. واحتفظ بالمقطع ذي الصلة كاملًا وموضعه عند تمريره إلى المرحلة التالية. يساعد التشابه على العثور على شيفرة مرشحة؛ أما مراجعة المدخلات الفعلية والآثار الجانبية والعقود فتحدد ما إذا كان المرشح يحل المشكلة الحالية.\n\nقيّم الاسترجاع على مجموعة أسئلة حقيقية لها إجابات معروفة في المصدر. أدرج دوال تغيرت أسماؤها وتعليقات مضللة وأدوات مساعدة متشابهة ذات حالات حدّية مختلفة واستعلامات تستخدم مفردات غير موجودة في الشيفرة. وتحقق من ظهور التنفيذ المتوقع ضمن النتائج المفيدة ومن توفير المقطع المعروض سياقًا كافيًا لتقييمه. احتفظ بهذه الأسئلة مع نمو المستودع حتى يمكن مقارنة تغييرات الاستخراج أو حدود المقاطع أو الفهرسة باستخدام المهام نفسها.",
  "editorialOverlay": {
    "copy_fields": null,
    "copy_sha256": null,
    "copy_source": null,
    "html_sha256": "8c3681529c0062eaeb3915f274edab45631773982fd87ddaf48a6854048eb478",
    "module_sha256": "ee9dc1c50b1e6a8fb7fa062030fcb4646b9aaaeb08be513b723a5a92a7290f06",
    "raw_model_unchanged": true,
    "schema": "ailoot-native-model-editorial-v1"
  },
  "locale": "ar",
  "methods": [
    {
      "html": "<div class=\"sheet-head\"><span class=\"mav\" aria-hidden=\"true\">•</span><h2 id=\"sheet-title\">Voyage AI: Voyage Code 2</h2><button class=\"icon-btn\" type=\"button\" data-close-sheet aria-label=\"إغلاق\">×</button></div><div class=\"idline\"><span>Voyage AI /</span><code>voyage-code-2</code><button type=\"button\" id=\"copy-id\">نسخ ID</button></div><nav class=\"card-jump-nav\" aria-label=\"أقسام بطاقة النموذج\"><button type=\"button\" data-card-jump=\"overview\">البداية</button><button type=\"button\" data-card-jump=\"methods\">المدخلات والطرائق</button><button type=\"button\" data-card-jump=\"pricing\">الباقات</button><button type=\"button\" data-card-jump=\"examples\">أمثلة</button><button type=\"button\" data-card-jump=\"results\">النتائج</button><button type=\"button\" data-card-jump=\"aliases\">الأسماء البديلة</button></nav><div class=\"card-method-tabs\" role=\"tablist\" aria-label=\"طرائق API\"><button type=\"button\" role=\"tab\" tabindex=\"0\" aria-controls=\"card-method-content\" aria-selected=\"true\" id=\"card-method-tab-0\" data-card-method=\"Ultra|embeddings|/v1/embeddings|voyage-code-2\">التضمينات</button></div><div id=\"card-method-content\" role=\"tabpanel\" aria-labelledby=\"card-method-tab-0\"><section class=\"card-section\" data-card-section=\"overview\"><h3 tabindex=\"-1\">البداية</h3><p class=\"mdesc-full\">ينشئ Voyage Code 2 تضمينات للشيفرة المصدرية والنصوص المرتبطة بها من أجل البحث الدلالي في المستودعات. وتستطيع الأسئلة باللغة الطبيعية أو مقاطع الشيفرة أو الاستعلامات التي تجمعهما استرجاع تنفيذات ذات صلة؛ ويستخدم هذا الإصدار نافذة سياق تبلغ 16,000 رمز ومتجهات ذات 1,536 بُعدًا.</p><dl class=\"card-io\" data-card-io><div><dt>المدخلات المقبولة</dt><dd>النص</dd></div><div><dt>النتائج</dt><dd>embedding</dd></div></dl><details class=\"card-about\"><summary>عن النموذج</summary><p class=\"note-s\" data-model-method-boundary>يغطي هذا الوصف قدرات النموذج. وترد أدناه المدخلات والمخرجات والخيارات المتاحة في Ailoot للطريقة المحددة.</p><div class=\"mabout\" id=\"m-about\"><p>ينشئ Voyage Code 2 تضمينات عددية للشيفرة المصدرية والنصوص المرتبطة بها. وقد صُمم للاسترجاع الدلالي للشيفرة، حيث يصف المطور سلوكًا أو يقدم جزءًا من الشيفرة فيعثر نظام البحث على تنفيذات ذات صلة. وتشمل أمثلة الشركة المصنّعة أسئلة باللغة الطبيعية ومقاطع شيفرة ومزيجًا منهما كمدخلات للبحث.</p><p>استخدمه لبناء تجربة بحث في المستودع تتمحور حول أسئلة تطوير حقيقية. فقد يبحث مطور عن الدالة التي لا تزيل إلا أول محرف يطابق شرطًا وآخر محرف يطابقه، أو عن جزء من مشروع يطبق اجتيازًا معينًا لشجرة. جهّز استعلامات تعبر عن السلوك بدقة، بما فيها الشرط الذي يميز التنفيذ المقصود عن تنفيذ قريب لكنه غير صحيح.</p><p>فهرس الشيفرة بوحدات مفيدة بدلًا من تقسيم كل ملف عند عدد عشوائي من المحارف. احتفظ بتوقيع الدالة وجسمها والشرح ذي الصلة معًا. وعندما تعتمد دالة مساعدة على أنواع أو ثوابت محلية، احتفظ بقدر كافٍ من النص المحيط لفهم غرضها. وخزّن مسارات الملفات ومراجعات المستودع ومواضع المصدر خارج التضمين حتى تفتح النتيجة الشيفرة الأصلية مباشرة.</p><p>يوفر هذا الإصدار نافذة سياق تبلغ 16,000 رمز وينتج تضمينات ذات 1,536 بُعدًا. اضبط سعة فهرس المتجهات لهذا التمثيل، وحافظ على ارتباط تضمينات الاستعلامات والمستندات بالنموذج نفسه. ويمكن لمجموعة مفهرسة أصلًا باستخدام Voyage Code 2 الاحتفاظ بتمثيل استرجاع متسق أثناء تحديث سجلاتها المصدرية. وينبغي التعامل مع الانتقال إلى إصدار تضمين آخر بوصفه ترحيلًا للفهرس، مع مقارنة صريحة على المستودع نفسه.</p><p>لاستعلام باللغة الطبيعية، صف العملية والمدخلات والنتيجة ذات الصلة. ولاستعلام بالشيفرة، أرفق المقطع الذي تريد مطابقة منطقه واشرح أي شرط يهم البحث. فالبحث عن معالجة إعادة المحاولة مثلًا يمكن أن يحدد ما إذا كانت الشيفرة المطلوبة تعيد المحاولة بعد انتهاء مهلة أو بعد رد خطأ كامل. ويجب التحقق من هذا الفرق في المصدر المسترجع قبل استخدامه في تعديل.</p><p>حافظ على قابلية تتبع الوثائق والشيفرة المصدرية عند فهرستهما معًا. فقد يوفر مقطع تفسيري سياقًا مفيدًا، بينما يكون التنفيذ هو المادة التي يحتاج المطور إلى فحصها. ضع تسميات لأنواع السجلات هذه حتى تعرض صفحة البحث الوجهة الصحيحة ويستطيع مساعد البرمجة التمييز بين وصف ومصدر قابل للتنفيذ.</p><p>استخدم المقاطع المسترجعة كسياق للتنقل في المستودع أو اكتشاف التنفيذات أو الخطوة التالية لمساعد برمجي. واحتفظ بالمقطع ذي الصلة كاملًا وموضعه عند تمريره إلى المرحلة التالية. يساعد التشابه على العثور على شيفرة مرشحة؛ أما مراجعة المدخلات الفعلية والآثار الجانبية والعقود فتحدد ما إذا كان المرشح يحل المشكلة الحالية.</p><p>قيّم الاسترجاع على مجموعة أسئلة حقيقية لها إجابات معروفة في المصدر. أدرج دوال تغيرت أسماؤها وتعليقات مضللة وأدوات مساعدة متشابهة ذات حالات حدّية مختلفة واستعلامات تستخدم مفردات غير موجودة في الشيفرة. وتحقق من ظهور التنفيذ المتوقع ضمن النتائج المفيدة ومن توفير المقطع المعروض سياقًا كافيًا لتقييمه. احتفظ بهذه الأسئلة مع نمو المستودع حتى يمكن مقارنة تغييرات الاستخراج أو حدود المقاطع أو الفهرسة باستخدام المهام نفسها.</p></div></details></section><section class=\"card-section\" data-card-section=\"methods\"><h3 tabindex=\"-1\">متاح في Ailoot · المدخلات والطرائق</h3><details class=\"card-method\" open><summary><b>Ailoot Ultra · التضمينات</b> <code>POST /v1/embeddings</code></summary><dl class=\"method-capabilities\"><div><dt>الإدخال</dt><dd><code>text</code></dd></div><div><dt>الإخراج</dt><dd><code>embedding</code></dd></div></dl><div class=\"tw\" data-card-parameters data-typed-parameters><table><thead><tr><th>الحقل</th><th>النوع</th><th>المتطلب</th><th>القيم والحدود</th><th>القيمة الافتراضية</th></tr></thead><tbody><tr><th data-cell-label=\"الحقل\" scope=\"row\"><span class=\"card-cell-label\">الحقل</span><code class=\"card-field-name\">model</code></th><td data-cell-label=\"النوع\" data-field-type><span class=\"card-cell-label\">النوع</span><code>string</code></td><td data-cell-label=\"المتطلب\"><span class=\"card-cell-label\">المتطلب</span>مطلوب</td><td data-cell-label=\"القيم والحدود\"><span class=\"card-cell-label\">القيم والحدود</span><div>voyage-code-2</div><div>الشروط: استخدم محدِّد نموذج Ailoot الدقيق.</div></td><td data-cell-label=\"القيمة الافتراضية\" data-default=\"unspecified\"><span class=\"card-cell-label\">القيمة الافتراضية</span>—</td></tr><tr><th data-cell-label=\"الحقل\" scope=\"row\"><span class=\"card-cell-label\">الحقل</span><code class=\"card-field-name\">input</code></th><td data-cell-label=\"النوع\" data-field-type><span class=\"card-cell-label\">النوع</span><code>string or array&lt;string&gt;</code></td><td data-cell-label=\"المتطلب\"><span class=\"card-cell-label\">المتطلب</span>مطلوب</td><td data-cell-label=\"القيم والحدود\"><span class=\"card-cell-label\">القيم والحدود</span><div>الشروط: نص أو قائمة نصوص؛ احتفظ بمتجه لكل عنصر بيانات مُعاد وبفهرس ذلك العنصر.</div></td><td data-cell-label=\"القيمة الافتراضية\" data-default=\"unspecified\"><span class=\"card-cell-label\">القيمة الافتراضية</span>—</td></tr></tbody></table></div><details class=\"note-s\" data-method-contract><summary>معلمات الطريقة ودورة حياتها</summary><div class=\"tw\" data-card-table=\"contract\"><table><thead><tr><th>المعلمة</th><th>المواصفات</th></tr></thead><tbody><tr><th data-cell-label=\"المعلمة\" scope=\"row\"><span class=\"card-cell-label\">المعلمة</span><code>content_type</code></th><td data-cell-label=\"المواصفات\"><span class=\"card-cell-label\">المواصفات</span>application/json</td></tr><tr><th data-cell-label=\"المعلمة\" scope=\"row\"><span class=\"card-cell-label\">المعلمة</span><code>required</code></th><td data-cell-label=\"المواصفات\"><span class=\"card-cell-label\">المواصفات</span>model, input</td></tr><tr><th data-cell-label=\"المعلمة\" scope=\"row\"><span class=\"card-cell-label\">المعلمة</span><code>optional</code></th><td data-cell-label=\"المواصفات\"><span class=\"card-cell-label\">المواصفات</span></td></tr><tr><th data-cell-label=\"المعلمة\" scope=\"row\"><span class=\"card-cell-label\">المعلمة</span><code>material_types</code></th><td data-cell-label=\"المواصفات\"><span class=\"card-cell-label\">المواصفات</span>text</td></tr><tr><th data-cell-label=\"المعلمة\" scope=\"row\"><span class=\"card-cell-label\">المعلمة</span><code>conditions</code></th><td data-cell-label=\"المواصفات\"><span class=\"card-cell-label\">المواصفات</span>أرسل النص مع النموذج المختار؛ واحتفظ بكل متجه مُعاد وفهرسه.</td></tr></tbody></table></div><p>دورة الحياة: <code>synchronous</code></p></details></details></section><section class=\"card-section\" data-card-section=\"pricing\"><h3 tabindex=\"-1\">الباقات</h3><div data-native-semantic-method=\"v1\" data-tariff-reference-only><p class=\"note-s\" data-rate-support-note>مراجع التسعير لا تضيف خيارات للطلب. المعلمات المدعومة مذكورة للطريقة المحددة.</p><dl data-price-conditions><dt>الوضع السريع</dt><dd>غير محدد <span class=\"note-s\">عند اختيار الوضع السريع</span></dd><dt>الوضع المرن</dt><dd>غير محدد <span class=\"note-s\">عند اختيار وضع flex</span></dd><dt>أقصى جهد للاستدلال</dt><dd>غير محدد <span class=\"note-s\">عندما يُطبَّق الضبط الافتراضي default مع أقصى جهد للاستدلال</span></dd></dl></div><div data-declared-tariff-pricing><h4>تعرفات Ailoot</h4><h4>الأسعار حسب الإعدادات</h4><div class=\"tw\" data-pricing-profiles><table><thead><tr><th>الإعدادات</th><th>جدول التعرفة</th><th>الرسوم</th></tr></thead><tbody><tr><th data-cell-label=\"الإعدادات\" scope=\"row\"><span class=\"card-cell-label\">الإعدادات</span>الأسعار الأساسية للرموز</th><td data-cell-label=\"جدول التعرفة\"><span class=\"card-cell-label\">جدول التعرفة</span>التعرفة الأساسية</td><td data-cell-label=\"الرسوم\"><span class=\"card-cell-label\">الرسوم</span><div><span>الإدخال · رموز الإدخال</span> <b>$0.0004</b> <span class=\"price-unit\">/ 1K من الرموز</span></div><div><span>الإخراج · رموز الإخراج</span> <b>$0</b> <span class=\"price-unit\">/ 1K من الرموز</span></div><div><span>الإدخال · قراءة ذاكرة التخزين المؤقت</span> <b>—</b> <span class=\"price-unit\">/ 1K من الرموز</span></div><div><span>الإدخال · الكتابة إلى ذاكرة التخزين المؤقت</span> <b>—</b> <span class=\"price-unit\">/ 1K من الرموز</span></div><div><span>الإدخال · الكتابة إلى ذاكرة التخزين المؤقت، 1 ساعة</span> <b>—</b> <span class=\"price-unit\">/ 1K من الرموز</span></div></td></tr></tbody></table></div></div><p class=\"note-s\">تحجز Ailoot مبلغًا تقديريًا قبل الطلب. وبعد ظهور النتيجة، تُسوّي الرسوم النهائية بناءً على الاستخدام المقاس. وتستخدم تسوية البث سجل الاستخدام النهائي. <a href=\"/docs/ar/billing/reserve/\">كيفية عمل حجز المبلغ وتسوية الرسوم →</a></p></section><section class=\"card-section\" data-card-section=\"examples\"><h3 tabindex=\"-1\">أمثلة للطلبات</h3><h4>Ailoot Ultra · التضمينات</h4><div class=\"code-group\"><div class=\"cg-bar\"><div class=\"cg-tabs\" role=\"tablist\" aria-label=\"خيارات الشيفرة\"><button class=\"cg-tab\" id=\"model-code-2789-tab-0\" role=\"tab\" type=\"button\" aria-controls=\"model-code-2789-panel-0\" aria-selected=\"true\" tabindex=\"0\">curl · احفظ جميع المتجهات وبيانات الاستخدام</button></div><div class=\"cg-tools\"><button class=\"cg-btn cg-copy\" type=\"button\" aria-label=\"نسخ الشيفرة\"><svg class=\"cp\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\"><rect x=\"5.25\" y=\"5.25\" width=\"8.5\" height=\"8.5\" rx=\"1.75\"/><path d=\"M10.75 5.25V3.5a1.25 1.25 0 0 0-1.25-1.25H3.5A1.25 1.25 0 0 0 2.25 3.5v6a1.25 1.25 0 0 0 1.25 1.25h1.75\"/></svg><svg class=\"ok\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\"><path d=\"m3 8.5 3.25 3.25L13 5\"/></svg></button></div></div><div class=\"cg-body\"><div class=\"cg-pane\" id=\"model-code-2789-panel-0\" role=\"tabpanel\" aria-labelledby=\"model-code-2789-tab-0\"><pre data-lang=\"bash\"><code>set -eu\n: &quot;${AILOOT_API_KEY:?Set your Ailoot API key}&quot;\ncat &gt; request.json &lt;&lt;&#39;JSON&#39;\n{\n  &quot;model&quot;: &quot;voyage-code-2&quot;,\n  &quot;input&quot;: &quot;The quick brown fox jumps over the lazy dog&quot;\n}\nJSON\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/embeddings \\\n  -H &quot;Authorization: Bearer $AILOOT_API_KEY&quot; -H &#39;Content-Type: application/json&#39; \\\n  --data-binary @request.json -D response-headers.txt -o embeddings.json\n# Keep every data item and its index, the full usage object and response headers.\n</code></pre></div></div></div></section><section class=\"card-section\" data-card-section=\"results\"><h3 tabindex=\"-1\">استلام النتائج وحفظها</h3></section><section class=\"card-section\" data-card-section=\"aliases\"><h3 tabindex=\"-1\">الأسماء البديلة</h3><h4>الأسماء البديلة للنموذج</h4><p class=\"note-s\"><span data-model-alias-route=\"Ultra\"><b>Ailoot Ultra</b> <a href=\"#m=voyage-code-2&amp;route=Ultra&amp;caller=voyage-code-2&amp;fmt=embeddings\"><code>voyage-code-2</code></a></span></p><h4>الأسماء البديلة لمسارات الطرائق</h4><p class=\"note-s\">استخدم مسارات الطرائق المعروضة أعلاه.</p><h4>معرّفات النماذج ذات الصلة IDs</h4><p class=\"note-s\"><a href=\"#m=voyage-code-2&amp;route=Ultra&amp;caller=voyage-code-2&amp;fmt=embeddings\"><code>voyage-code-2</code></a></p></section></div>",
      "method_identity": {
        "effective_request_model_id": "voyage-code-2",
        "fmt": "embeddings",
        "http": "POST",
        "path": "/v1/embeddings",
        "request_model_id": "voyage-code-2",
        "route_label": "Ultra"
      },
      "method_key": "Ultra|embeddings|/v1/embeddings|voyage-code-2",
      "ordinal": 0,
      "rawMethod": {
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "contract": {
          "data": {
            "all_results": "Save the complete JSON response, every vector with its index, all usage fields and request headers.",
            "lifecycle": {
              "content": [],
              "create": {
                "http": "POST",
                "path": "/v1/embeddings"
              },
              "mode": "synchronous",
              "status": [],
              "unknown": "احتفظ بالاستجابة الأصلية وX-Client-Request-ID للمطابقة. الاستجابة الملتبسة لا تمنح إذنًا بإرسال طلب الإنشاء نفسه مرة أخرى.",
              "unknown_no_replay": true
            },
            "outputs": {
              "all_results": "احفظ استجابة JSON كاملةً، وكل متجه مع فهرسه، وجميع حقول الاستخدام وترويسات الطلب.",
              "every_actual_output": true,
              "family": "embedding",
              "fields": [
                {
                  "name": "object",
                  "type": "string"
                },
                {
                  "name": "model",
                  "type": "string"
                },
                {
                  "name": "data[].index",
                  "type": "integer"
                },
                {
                  "name": "data[].embedding",
                  "type": "array<number>"
                },
                {
                  "name": "usage",
                  "type": "object"
                },
                {
                  "name": "usage.prompt_tokens",
                  "type": "integer"
                },
                {
                  "name": "usage.total_tokens",
                  "type": "integer"
                }
              ]
            },
            "parameters": [
              {
                "conditions": "استخدم محدِّد نموذج Ailoot الدقيق.",
                "default_known": false,
                "enum": [
                  "voyage-code-2"
                ],
                "enum_known": true,
                "maximum_length": null,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "conditions": "نص أو قائمة نصوص؛ احتفظ بمتجه لكل عنصر بيانات مُعاد وبفهرس ذلك العنصر.",
                "default_known": false,
                "enum_known": false,
                "maximum_length": null,
                "name": "input",
                "oneOf": [
                  {
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                ],
                "required": true,
                "type": "string or array<string>"
              }
            ],
            "request_schema": {
              "additionalProperties": true,
              "properties": {
                "input": {
                  "oneOf": [
                    {
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  ]
                },
                "model": {
                  "enum": [
                    "voyage-code-2"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "model",
                "input"
              ],
              "type": "object"
            },
            "schema_template": {
              "actual_file_preparation_required": false,
              "body": {
                "input": "The quick brown fox jumps over the lazy dog",
                "model": "voyage-code-2"
              },
              "content_type": "application/json"
            }
          },
          "input": {
            "conditions": [
              "أرسل النص مع النموذج المختار؛ واحتفظ بكل متجه مُعاد وفهرسه."
            ],
            "content_type": "application/json",
            "material_types": [
              "text"
            ],
            "optional": [],
            "required": [
              "model",
              "input"
            ]
          },
          "lifecycle": {
            "content": [],
            "create": {
              "http": "POST",
              "path": "/v1/embeddings"
            },
            "mode": "synchronous",
            "status": [],
            "unknown": "Keep the original response and X-Client-Request-ID for reconciliation. An ambiguous response is not permission to submit the same creation again.",
            "unknown_no_replay": true
          },
          "method": {
            "http": "POST",
            "path": "/v1/embeddings"
          },
          "output": {
            "all_results": "Save the complete JSON response, every vector with its index, all usage fields and request headers.",
            "every_actual_output": true,
            "family": "embedding",
            "fields": [
              {
                "name": "object",
                "type": "string"
              },
              {
                "name": "model",
                "type": "string"
              },
              {
                "name": "data[].index",
                "type": "integer"
              },
              {
                "name": "data[].embedding",
                "type": "array<number>"
              },
              {
                "name": "usage",
                "type": "object"
              },
              {
                "name": "usage.prompt_tokens",
                "type": "integer"
              },
              {
                "name": "usage.total_tokens",
                "type": "integer"
              }
            ]
          }
        },
        "ctx": null,
        "declared_pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "الأسعار الأساسية للرموز",
            "units": [
              {
                "amount": "0.0004000",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": "0.0000004",
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": "0",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": "0",
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          }
        ],
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\ncat > request.json <<'JSON'\n{\n  \"model\": \"voyage-code-2\",\n  \"input\": \"The quick brown fox jumps over the lazy dog\"\n}\nJSON\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/embeddings \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o embeddings.json\n# Keep every data item and its index, the full usage object and response headers.\n",
            "label": "curl · save all vectors and usage",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "embeddings",
        "http": "POST",
        "in": 0.4,
        "input": [
          "text"
        ],
        "label": "التضمينات",
        "max_out": null,
        "max_reasoning_effort_multiplier": null,
        "out": 0,
        "output": [
          "embedding"
        ],
        "path": "/v1/embeddings",
        "price_conditions": [
          {
            "label": "Fast mode",
            "value": "Not specified",
            "when": "When fast mode is selected"
          },
          {
            "label": "Flex mode",
            "value": "Not specified",
            "when": "When flex mode is selected"
          },
          {
            "label": "Maximum reasoning effort",
            "value": "Not specified",
            "when": "When maximum reasoning effort uses the default adjustment"
          }
        ],
        "pricing": {
          "billing_mode": "token",
          "image_input_price": null,
          "image_output_price": null,
          "per_request_price": null
        },
        "pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": "0.0004000",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": "0.0000004",
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": "0",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": "0",
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          }
        ],
        "request_model_id": "voyage-code-2",
        "route_label": "Ultra",
        "status_reads": [],
        "tiers": [],
        "units": [
          {
            "amount": "0.0004000",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "input_price",
            "label": "Input tokens",
            "native_amount_usd_per_unit": "0.0000004",
            "native_quantity": 1,
            "native_unit": "input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "input_token"
          },
          {
            "amount": "0",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "output_price",
            "label": "Output tokens",
            "native_amount_usd_per_unit": "0",
            "native_quantity": 1,
            "native_unit": "output_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "output_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_read_price",
            "label": "Cache read",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "cached_input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "cached_input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_write_price",
            "label": "Cache write",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "generic_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "generic_cache_creation_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_write_1h_price",
            "label": "Cache write, 1 hour",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "one_hour_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "one_hour_cache_creation_token"
          }
        ]
      }
    }
  ],
  "model_id": "voyage-code-2",
  "nativeProvenance": {
    "input_facts_canonical_sha256": "2414b20b276df2a33667a08567881b0f4907acc1588f0453ccc04d5326625e7d",
    "input_html_sha256": "d7719fada842432594a5c50efa6b361631f083c0786218ebdcdfeeb2c0ffdac4",
    "private_audit_sha256": "ae8935d71ec859c5257c1342365dce5a2d60342924bd19bef58e602dbe161ab3",
    "role": "historical-normalized-input-audit-hashes",
    "schema": "ailoot-native-model-provenance-v2"
  },
  "page": {
    "canonical": "https://ailoot.ai/models/ar/voyage-code-2/",
    "description": "ينشئ Voyage Code 2 تضمينات للشيفرة المصدرية والنصوص المرتبطة بها من أجل البحث الدلالي في المستودعات. وتستطيع الأسئلة باللغة الطبيعية أو مقاطع الشيفرة أو الاستعلامات التي تجمعهما استرجاع تنفيذات ذات صلة؛ ويستخدم هذا الإصدار نافذة سياق تبلغ 16,000 رمز ومتجهات ذات 1,536 بُعدًا.",
    "locale": "ar",
    "md_url": "https://ailoot.ai/models/ar/voyage-code-2/index.md",
    "title": "Voyage AI: Voyage Code 2 — Ailoot",
    "url": "https://ailoot.ai/models/ar/voyage-code-2/"
  },
  "rawModel": {
    "about": "ينشئ Voyage Code 2 تضمينات عددية للشيفرة المصدرية والنصوص المرتبطة بها. وقد صُمم للاسترجاع الدلالي للشيفرة، حيث يصف المطور سلوكًا أو يقدم جزءًا من الشيفرة فيعثر نظام البحث على تنفيذات ذات صلة. وتشمل أمثلة الشركة المصنّعة أسئلة باللغة الطبيعية ومقاطع شيفرة ومزيجًا منهما كمدخلات للبحث.\n\nاستخدمه لبناء تجربة بحث في المستودع تتمحور حول أسئلة تطوير حقيقية. فقد يبحث مطور عن الدالة التي لا تزيل إلا أول محرف يطابق شرطًا وآخر محرف يطابقه، أو عن جزء من مشروع يطبق اجتيازًا معينًا لشجرة. جهّز استعلامات تعبر عن السلوك بدقة، بما فيها الشرط الذي يميز التنفيذ المقصود عن تنفيذ قريب لكنه غير صحيح.\n\nفهرس الشيفرة بوحدات مفيدة بدلًا من تقسيم كل ملف عند عدد عشوائي من المحارف. احتفظ بتوقيع الدالة وجسمها والشرح ذي الصلة معًا. وعندما تعتمد دالة مساعدة على أنواع أو ثوابت محلية، احتفظ بقدر كافٍ من النص المحيط لفهم غرضها. وخزّن مسارات الملفات ومراجعات المستودع ومواضع المصدر خارج التضمين حتى تفتح النتيجة الشيفرة الأصلية مباشرة.\n\nيوفر هذا الإصدار نافذة سياق تبلغ 16,000 رمز وينتج تضمينات ذات 1,536 بُعدًا. اضبط سعة فهرس المتجهات لهذا التمثيل، وحافظ على ارتباط تضمينات الاستعلامات والمستندات بالنموذج نفسه. ويمكن لمجموعة مفهرسة أصلًا باستخدام Voyage Code 2 الاحتفاظ بتمثيل استرجاع متسق أثناء تحديث سجلاتها المصدرية. وينبغي التعامل مع الانتقال إلى إصدار تضمين آخر بوصفه ترحيلًا للفهرس، مع مقارنة صريحة على المستودع نفسه.\n\nلاستعلام باللغة الطبيعية، صف العملية والمدخلات والنتيجة ذات الصلة. ولاستعلام بالشيفرة، أرفق المقطع الذي تريد مطابقة منطقه واشرح أي شرط يهم البحث. فالبحث عن معالجة إعادة المحاولة مثلًا يمكن أن يحدد ما إذا كانت الشيفرة المطلوبة تعيد المحاولة بعد انتهاء مهلة أو بعد رد خطأ كامل. ويجب التحقق من هذا الفرق في المصدر المسترجع قبل استخدامه في تعديل.\n\nحافظ على قابلية تتبع الوثائق والشيفرة المصدرية عند فهرستهما معًا. فقد يوفر مقطع تفسيري سياقًا مفيدًا، بينما يكون التنفيذ هو المادة التي يحتاج المطور إلى فحصها. ضع تسميات لأنواع السجلات هذه حتى تعرض صفحة البحث الوجهة الصحيحة ويستطيع مساعد البرمجة التمييز بين وصف ومصدر قابل للتنفيذ.\n\nاستخدم المقاطع المسترجعة كسياق للتنقل في المستودع أو اكتشاف التنفيذات أو الخطوة التالية لمساعد برمجي. واحتفظ بالمقطع ذي الصلة كاملًا وموضعه عند تمريره إلى المرحلة التالية. يساعد التشابه على العثور على شيفرة مرشحة؛ أما مراجعة المدخلات الفعلية والآثار الجانبية والعقود فتحدد ما إذا كان المرشح يحل المشكلة الحالية.\n\nقيّم الاسترجاع على مجموعة أسئلة حقيقية لها إجابات معروفة في المصدر. أدرج دوال تغيرت أسماؤها وتعليقات مضللة وأدوات مساعدة متشابهة ذات حالات حدّية مختلفة واستعلامات تستخدم مفردات غير موجودة في الشيفرة. وتحقق من ظهور التنفيذ المتوقع ضمن النتائج المفيدة ومن توفير المقطع المعروض سياقًا كافيًا لتقييمه. احتفظ بهذه الأسئلة مع نمو المستودع حتى يمكن مقارنة تغييرات الاستخراج أو حدود المقاطع أو الفهرسة باستخدام المهام نفسها.",
    "about_sha256": "02443af503f57362991a7f624a9b2b777836a591a3816de5330425a291427ffb",
    "alias_of": null,
    "aliases": [],
    "author": "Voyage AI",
    "capabilities": {
      "context_length": 16000,
      "manufacturer_input": [
        "text"
      ],
      "manufacturer_output": [
        "embeddings"
      ]
    },
    "card_routes": [
      {
        "label": "Ultra",
        "rates": [
          {
            "amount": "0.0004000",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "input_price",
            "label": "Input tokens",
            "native_amount_usd_per_unit": "0.0000004",
            "native_quantity": 1,
            "native_unit": "input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "input_token"
          },
          {
            "amount": "0",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "output_price",
            "label": "Output tokens",
            "native_amount_usd_per_unit": "0",
            "native_quantity": 1,
            "native_unit": "output_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "output_token"
          }
        ],
        "summary": "التسعير الكامل للتكوين في التفاصيل."
      }
    ],
    "ctx": null,
    "display_name": "Voyage AI: Voyage Code 2",
    "formats": [
      "embeddings"
    ],
    "id": "voyage-code-2",
    "input": [
      "text"
    ],
    "kind": "embedding",
    "locale": "en",
    "max_out": null,
    "methods": [
      {
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "contract": {
          "data": {
            "all_results": "Save the complete JSON response, every vector with its index, all usage fields and request headers.",
            "lifecycle": {
              "content": [],
              "create": {
                "http": "POST",
                "path": "/v1/embeddings"
              },
              "mode": "synchronous",
              "status": [],
              "unknown": "احتفظ بالاستجابة الأصلية وX-Client-Request-ID للمطابقة. الاستجابة الملتبسة لا تمنح إذنًا بإرسال طلب الإنشاء نفسه مرة أخرى.",
              "unknown_no_replay": true
            },
            "outputs": {
              "all_results": "احفظ استجابة JSON كاملةً، وكل متجه مع فهرسه، وجميع حقول الاستخدام وترويسات الطلب.",
              "every_actual_output": true,
              "family": "embedding",
              "fields": [
                {
                  "name": "object",
                  "type": "string"
                },
                {
                  "name": "model",
                  "type": "string"
                },
                {
                  "name": "data[].index",
                  "type": "integer"
                },
                {
                  "name": "data[].embedding",
                  "type": "array<number>"
                },
                {
                  "name": "usage",
                  "type": "object"
                },
                {
                  "name": "usage.prompt_tokens",
                  "type": "integer"
                },
                {
                  "name": "usage.total_tokens",
                  "type": "integer"
                }
              ]
            },
            "parameters": [
              {
                "conditions": "استخدم محدِّد نموذج Ailoot الدقيق.",
                "default_known": false,
                "enum": [
                  "voyage-code-2"
                ],
                "enum_known": true,
                "maximum_length": null,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "conditions": "نص أو قائمة نصوص؛ احتفظ بمتجه لكل عنصر بيانات مُعاد وبفهرس ذلك العنصر.",
                "default_known": false,
                "enum_known": false,
                "maximum_length": null,
                "name": "input",
                "oneOf": [
                  {
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                ],
                "required": true,
                "type": "string or array<string>"
              }
            ],
            "request_schema": {
              "additionalProperties": true,
              "properties": {
                "input": {
                  "oneOf": [
                    {
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  ]
                },
                "model": {
                  "enum": [
                    "voyage-code-2"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "model",
                "input"
              ],
              "type": "object"
            },
            "schema_template": {
              "actual_file_preparation_required": false,
              "body": {
                "input": "The quick brown fox jumps over the lazy dog",
                "model": "voyage-code-2"
              },
              "content_type": "application/json"
            }
          },
          "input": {
            "conditions": [
              "أرسل النص مع النموذج المختار؛ واحتفظ بكل متجه مُعاد وفهرسه."
            ],
            "content_type": "application/json",
            "material_types": [
              "text"
            ],
            "optional": [],
            "required": [
              "model",
              "input"
            ]
          },
          "lifecycle": {
            "content": [],
            "create": {
              "http": "POST",
              "path": "/v1/embeddings"
            },
            "mode": "synchronous",
            "status": [],
            "unknown": "Keep the original response and X-Client-Request-ID for reconciliation. An ambiguous response is not permission to submit the same creation again.",
            "unknown_no_replay": true
          },
          "method": {
            "http": "POST",
            "path": "/v1/embeddings"
          },
          "output": {
            "all_results": "Save the complete JSON response, every vector with its index, all usage fields and request headers.",
            "every_actual_output": true,
            "family": "embedding",
            "fields": [
              {
                "name": "object",
                "type": "string"
              },
              {
                "name": "model",
                "type": "string"
              },
              {
                "name": "data[].index",
                "type": "integer"
              },
              {
                "name": "data[].embedding",
                "type": "array<number>"
              },
              {
                "name": "usage",
                "type": "object"
              },
              {
                "name": "usage.prompt_tokens",
                "type": "integer"
              },
              {
                "name": "usage.total_tokens",
                "type": "integer"
              }
            ]
          }
        },
        "ctx": null,
        "declared_pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "الأسعار الأساسية للرموز",
            "units": [
              {
                "amount": "0.0004000",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": "0.0000004",
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": "0",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": "0",
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          }
        ],
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\ncat > request.json <<'JSON'\n{\n  \"model\": \"voyage-code-2\",\n  \"input\": \"The quick brown fox jumps over the lazy dog\"\n}\nJSON\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/embeddings \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o embeddings.json\n# Keep every data item and its index, the full usage object and response headers.\n",
            "label": "curl · save all vectors and usage",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "embeddings",
        "http": "POST",
        "in": 0.4,
        "input": [
          "text"
        ],
        "label": "التضمينات",
        "max_out": null,
        "max_reasoning_effort_multiplier": null,
        "out": 0,
        "output": [
          "embedding"
        ],
        "path": "/v1/embeddings",
        "price_conditions": [
          {
            "label": "Fast mode",
            "value": "Not specified",
            "when": "When fast mode is selected"
          },
          {
            "label": "Flex mode",
            "value": "Not specified",
            "when": "When flex mode is selected"
          },
          {
            "label": "Maximum reasoning effort",
            "value": "Not specified",
            "when": "When maximum reasoning effort uses the default adjustment"
          }
        ],
        "pricing": {
          "billing_mode": "token",
          "image_input_price": null,
          "image_output_price": null,
          "per_request_price": null
        },
        "pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": "0.0004000",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": "0.0000004",
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": "0",
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": "0",
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": true,
                "estimate_only": false,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": false,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          }
        ],
        "request_model_id": "voyage-code-2",
        "route_label": "Ultra",
        "status_reads": [],
        "tiers": [],
        "units": [
          {
            "amount": "0.0004000",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "input_price",
            "label": "Input tokens",
            "native_amount_usd_per_unit": "0.0000004",
            "native_quantity": 1,
            "native_unit": "input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "input_token"
          },
          {
            "amount": "0",
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "output_price",
            "label": "Output tokens",
            "native_amount_usd_per_unit": "0",
            "native_quantity": 1,
            "native_unit": "output_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "output_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_read_price",
            "label": "Cache read",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "cached_input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "cached_input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_write_price",
            "label": "Cache write",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "generic_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "generic_cache_creation_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": true,
            "estimate_only": false,
            "key": "cache_write_1h_price",
            "label": "Cache write, 1 hour",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "one_hour_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": false,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "one_hour_cache_creation_token"
          }
        ]
      }
    ],
    "model_aliases": [
      {
        "canonical_model_id": "voyage-code-2",
        "request_model_id": "voyage-code-2",
        "route_label": "Ultra"
      }
    ],
    "name": "Voyage AI: Voyage Code 2",
    "price": {
      "in": 0.4,
      "in_label": null,
      "out": 0,
      "out_label": null,
      "scope_label": "Token rates",
      "sort_in": 0.4,
      "sort_out": 0,
      "varies": false
    },
    "short": "ينشئ Voyage Code 2 تضمينات للشيفرة المصدرية والنصوص المرتبطة بها من أجل البحث الدلالي في المستودعات. وتستطيع الأسئلة باللغة الطبيعية أو مقاطع الشيفرة أو الاستعلامات التي تجمعهما استرجاع تنفيذات ذات صلة؛ ويستخدم هذا الإصدار نافذة سياق تبلغ 16,000 رمز ومتجهات ذات 1,536 بُعدًا.",
    "short_sha256": "392f5ff2471da11418d1ad1c0971fff44fb348ff0d8d619073b3d78c51bb9acb"
  },
  "renderer_schema": {
    "method_order": "Original DTO methods order; every exact route/format/path/caller survives.",
    "prices": "Original public DTO fields and original native display HTML; no flattened or normalized offers."
  },
  "representation": "exact-public-dto-and-native-renderer-html",
  "representationNotes": {
    "current_reference": {
      "about_json_pointer": "/aboutHtml",
      "methods": [
        {
          "contract_json_pointer": "/methods/0/rawMethod/contract",
          "html_json_pointer": "/methods/0/html",
          "method_ordinal": 0
        }
      ],
      "role": "current-semantic-reference"
    },
    "raw_input": {
      "examples_role": "historical-input-not-current-ready-examples",
      "json_pointers": [
        "/rawModel",
        "/methods/0/rawMethod"
      ],
      "role": "historical-owner-input"
    },
    "schema": "ailoot-native-model-representations-v1"
  },
  "schema": "ailoot-static-model-facts-v1",
  "schema_version": 1,
  "shortText": "ينشئ Voyage Code 2 تضمينات للشيفرة المصدرية والنصوص المرتبطة بها من أجل البحث الدلالي في المستودعات. وتستطيع الأسئلة باللغة الطبيعية أو مقاطع الشيفرة أو الاستعلامات التي تجمعهما استرجاع تنفيذات ذات صلة؛ ويستخدم هذا الإصدار نافذة سياق تبلغ 16,000 رمز ومتجهات ذات 1,536 بُعدًا.",
  "source": {
    "audit_sha256": "2e00086bcbfc28e64d0cebe97aa47c17d8d5618963027f8ffb9dc6123d7d25b1",
    "bridge_map_sha256": "1125275768b9636fc8461bc7da5061239a81ddfe508e2557843ca42c58ab0036",
    "raw_model_json_sha256": "fd02f08e92f58881e6e51357f23f283419f2e6fe071225925277d2fdb4b05385",
    "renderer_sha256": "081ee0fd5b6b1b60564b02c52d62547e01e922c8c0a16e91a0d055073e76a10e"
  },
  "sourceRevision": "be203989b9b2a8a944e6826d79ab5c220497b332e691900d28e849be5e81f23a"
}
