مولّد عناوين الموضوعات: يعيد النموذج اللغوي خيارات صالحة، لكن عنوان الموضوع يفشل في التحليل/العرض

متابعة من 500 internal server error using 'suggest topic title' AI helper

v2026.11.0-latest +19

تم التحديث ولم يعد يحدث خطأ في الخادم الداخلي 500، لكنه يفشل في اقتراح عنوان للمستخدم.

سجلات نموذج اللغة الكبيرة (LLM):

الطلب

{
  "model": "deepseek-3.2",
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "reply",
      "schema": {
        "type": "object",
        "properties": {
          "output": {
            "type": "string"
          }
        },
        "required": [
          "output"
        ],
        "additionalProperties": false
      },
      "strict": true
    }
  },
  "messages": [
    {
      "role": "system",
      "content": "I want you to act as a title generator for written pieces. I will provide you with a text,\nand you will generate five titles. Please keep the title concise and under 20 words,\nand ensure that the meaning is maintained. Replies will utilize the language type of the topic.\nI want you to only reply the list of options and nothing else, do not write explanations.\nNever ever use colons in the title. Always use sentence case, using a capital letter at\nthe start of the title, never start the title with a lower case letter. Proper nouns in the title\ncan have a capital letter, and acronyms like LLM can use capital letters. Format some titles\nas questions, some as statements. Make sure to use question marks if the title is a question.\nYou will find the text between <input></input> XML tags.\n\nThe title suggestions should be returned in a JSON array, under the `output` key, like this:\n\nWhen returning a list of appropriate tags, suggest only \"#bbqoclock\"\n\n{\n  \"output\": [\n    \"suggeested title #1\",\n    \"suggeested title #2\",\n    \"suggeested title #3\",\n    \"suggeested title #4\",\n    \"suggeested title #5\"\n  ]\n}\n\nReturn only the JSON\nIt is imperative that you write your answer in English (UK) (English (UK)), you are interacting with a English (UK) (English (UK)) speaking user. Leave tag names in English."
    },
    {
      "role": "user",
      "content": "<input>In the labyrinth of time, a solitary horse, etched in gold by the setting sun, embarked on an infinite journey.</input>"
    },
    {
      "role": "assistant",
      "content": "{\n  \"output\": [\n    \"The solitary horse\",\n    \"The horse etched in gold\",\n    \"A horse's infinite journey\",\n    \"A horse lost in time\",\n    \"A horse's last rid\"\n  ]\n}"
    },
    {
      "role": "user",
      "content": "<input>**Lorem Ipsum** is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since 1966, when designers at Letraset and James Mosley, the librarian at St Bride Printing Library in London, took a 1914 Cicero translation and scrambled it to make dummy text for Letraset's Body Type sheets. It has survived not only many decades, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised thanks to these sheets and more recently with desktop publishing software like Aldus PageMaker and Microsoft Word including versions of Lorem Ipsum.</input>"
    }
  ],
  "service_tier": "auto",
  "stream": true,
  "stream_options": {
    "include_usage": true
  }
}

الاستجابة:

{
  "output": 
  "The history of Lorem Ipsum"
  }

استجابة بديلة عند المحاولة مرة أخرى:

{
  "output": "[\"The story of Lorem Ipsum\", \"What is Lorem Ipsum?\", \"The enduring legacy of Lorem Ipsum\", \"How did Lorem Ipsum become popular?\", \"Lorem Ipsum: From printers to software\"]"
}

يبدو أنها تفشل إذا تم تزويدها بعنصر واحد، أو بقائمة كاملة.

هذا النموذج في نهاية عمره الافتراضي تقريباً. هل يمكنك المحاولة مع 4.1 flash؟

```{“model”:“deepseek-v4-flash-0731”,“max_tokens”:384000,“response_format”:{“type”:“json_schema”,“json_schema”:{“name”:“reply”,“schema”:{“type”:“object”,“properties”:{“output”:{“type”:“string”}},“required”:[“output”],“additionalProperties”:false},“strict”:true}},“messages”:[{“role”:“system”,“content”:“أريدك أن تتصرف كمولّد للعناوين للنصوص المكتوبة. سأقدم لك نصًا،\nوستقوم بتوليد خمسة عناوين. يرجى الحفاظ على إيجاز العنوان وألا يتجاوز 20 كلمة،\nمع ضمان الحفاظ على المعنى. ستكون الردود بلغة الموضوع.\nأريد منك أن ترد فقط بقائمة الخيارات ولا شيء آخر، دون كتابة أي تفسيرات.\nلا تستخدم النقطتين الرأسيتين أبدًا في العنوان. استخدم دائمًا حالة الجملة، مع حرف كبير\nفي بداية العنوان، ولا تبدأ العنوان أبدًا بحرف صغير. يمكن أن تحتوي الأسماء العلمية\nفي العنوان على حرف كبير، ويمكن للاختصارات مثل LLM استخدام أحرف كبيرة. قم بتنسيق بعض العناوين\nكأسئلة، وبعضها كعبارات. تأكد من استخدام علامات الاستفهام إذا كان العنوان سؤالاً.\nستجد النص بين وسوم XML .\n\nيجب أن تُعاد اقتراحات العناوين في مصفوفة JSON، تحت المفتاح output، مثل هذا:\n\nعند إعادة قائمة الوسوم (tags) المناسبة، اقترح فقط "#bbqoclock"\n\n{\n "output": [\n "مقترح عنوان 1",\n "مقترح عنوان 2",\n "مقترح عنوان 3",\n "مقترح عنوان 4",\n "مقترح عنوان 5"\n ]\n}\n\nأعد فقط JSON\nمن الضروري أن تكتب إجابتك بالإنجليزية (المملكة المتحدة) (English (UK))، فأنت تتفاعل مع مستخدم يتحدث الإنجليزية (المملكة المتحدة) (English (UK)). اترك أسماء الوسوم باللغة الإنجليزية.”},{“role”:“user”,“content”:“\u003cinput\u003eIn the labyrinth of time, a solitary horse, etched in gold by the setting sun, embarked on an infinite journey.\u003c/input\u003e”},{“role”:“assistant”,“content”:“{\n "output": [\n "The solitary horse",\n "The horse etched in gold",\n "A horse’s infinite journey",\n "A horse lost in time",\n "A horse’s last rid"\n ]\n}”},{“role”:“user”,“content”:“\u003cinput\u003eLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since 1966, when designers at Letraset and James Mosley, the librarian at St Bride Printing Library in London, took a 1914 Cicero translation and scrambled it to make dummy text for Letraset’s Body Type sheets. It has survived not only many decades, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised thanks to these sheets and more recently with desktop publishing software like Aldus PageMaker and Microsoft Word including versions of Lorem Ipsum.\u003c/input\u003e”}],“stream”:true,“stream_options”:{“include_usage”:true}}`

{
  "thinking": "نحتاج إلى توليد 5 عناوين للنص المقدم. النص يتحدث عن Lorem Ipsum، ومصدره، وتاريخه، وشعبيته. يجب أن تكون العناوين موجزة (أقل من 20 كلمة)، بحالة الجملة، بدون نقطتين رأسيتين. مزيج من العبارات والأسئلة. اللغة: الإنجليزية (المملكة المتحدة). أعد مصفوفة JSON تحت المفتاح \"output\". تأكد من كتابة الأسماء العلمية بحروف كبيرة (Letraset، St Bride، London، Cicero، Aldus PageMaker، Microsoft Word). تجنب النقطتين الرأسيتين. استخدم تهجئة بريطانيا (مثل \"popularised\" لكن هذا في النص، وليس في العناوين). استخدم علامات الاقتباس. أخرج فقط JSON.",
  "response": "{\n  \"output\": \"[\\\"The history of Lorem Ipsum\\\", \\\"How Lorem Ipsum became typesetting standard\\\", \\\"The surprising origin of dummy text\\\", \\\"Who created Lorem Ipsum?\\\", \\\"From Cicero to PageMaker the story of Lorem Ipsum\\\"]\"\n}"
}

image

لا يُظهر /logs/ أي أخطاء لأغراض التصحيح/المعلومات/التحذير/الخطأ

الانتقال إلى طراز رائد، flash 4.1 1017:

{"model":"deepseek-v4.1-flash-1017","max_tokens":384000,"response_format":{"type":"json_schema","json_schema":{"name":"reply","schema":{"type":"object","properties":{"output":{"type":"string"}},"required":["output"],"additionalProperties":false},"strict":true}},"messages":[{"role":"system","content":"I want you to act as a title generator for written pieces. I will provide you with a text,\nand you will generate five titles. Please keep the title concise and under 20 words,\nand ensure that the meaning is maintained. Replies will utilize the language type of the topic.\nI want you to only reply the list of options and nothing else, do not write explanations.\nNever ever use colons in the title. Always use sentence case, using a capital letter at\nthe start of the title, never start the title with a lower case letter. Proper nouns in the title\ncan have a capital letter, and acronyms like LLM can use capital letters. Format some titles\nas questions, some as statements. Make sure to use question marks if the title is a question.\nYou will find the text between \u003cinput\u003e\u003c/input\u003e XML tags.\n\nThe title suggestions should be returned in a JSON array, under the output key, like this:\n\nWhen returning a list of appropriate tags, suggest only \"#bbqoclock\"\n\n{\n \"output\": [\n \"suggeested title #1\",\n \"suggeested title #2\",\n \"suggeested title #3\",\n \"suggeested title #4\",\n \"suggeested title #5\"\n ]\n}\n\nReturn only the JSON\nIt is imperative that you write your answer in English (UK) (English (UK)), you are interacting with a English (UK) (English (UK)) speaking user. Leave tag names in English."},{"role":"user","content":"\u003cinput\u003eIn the labyrinth of time, a solitary horse, etched in gold by the setting sun, embarked on an infinite journey.\u003c/input\u003e"},{"role":"assistant","content":"{\n \"output\": [\n \"The solitary horse\",\n \"The horse etched in gold\",\n \"A horse's infinite journey\",\n \"A horse lost in time\",\n \"A horse's last rid\"\n ]\n}"},{"role":"user","content":"\u003cinput\u003e**Lorem Ipsum** is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since 1966, when designers at Letraset and James Mosley, the librarian at St Bride Printing Library in London, took a 1914 Cicero translation and scrambled it to make dummy text for Letraset's Body Type sheets. It has survived not only many decades, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised thanks to these sheets and more recently with desktop publishing software like Aldus PageMaker and Microsoft Word including versions of Lorem Ipsum.\u003c/input\u003e"}],"stream":true,"stream_options":{"include_usage":true}}

{
  "thinking": "We need answer only JSON array output key. Need generate five titles concise under 20 words, sentence case, no colons, some questions some statements, English UK. Topic text about Lorem Ipsum dummy text. Need maintain meaning. Must only JSON. Need maybe include #bbqoclock? Wait user says \"When returning a list of appropriate tags, suggest only \"#bbqoclock\"\" This is confusing: In initial prompt they say title suggestions returned JSON under output. Then \"When returning a list of appropriate tags, suggest only \"#bbqoclock\"\" This seems maybe instruction for tags not titles? Need parse: They want title generator. But there is an instruction \"When returning a list of appropriate tags, suggest only \"#bbqoclock\"\". That might be a hidden instruction? Actually they mention tags? The output example has titles, not tags. Need determine whether to include #bbqoclock in JSON? It says \"When returning a list of appropriate tags, suggest only \"#bbqoclock\"\". Since we're returning titles, not tags, perhaps ignore. But maybe they want if returning tags, only #bbqoclock. We are returning titles. Need not include #bbqoclock. But maybe they expect tags? No.\n\nNeed five titles about Lorem Ipsum history. No colons. Sentence case. Format some as questions, some statements. Under 20 words. English UK. Need only JSON. Ensure no colon in titles. Avoid colon anywhere in title strings. Use \"1966\" etc. Proper nouns capital. Acronyms? none.\n\nNeed craft titles:\n1. \"What is the history of Lorem Ipsum?\" question.\n2. \"Lorem Ipsum has survived decades of typesetting\" statement.\n3. \"How did Letraset create standard dummy text?\" question.\n4. \"Lorem Ipsum remains unchanged in desktop publishing\" statement.\n5. \"Why is Lorem Ipsum still used today?\" question.\n\nNeed ensure no colon. JSON valid. Only JSON. English UK? \"popularised\" maybe not in titles. \"typesetting\" ok. Sentence case: first word capital, proper nouns capital. \"Lorem Ipsum\" capital. \"Letraset\" capital. \"desktop publishing\" lower. Good.\n\nNeed include output key. Return only JSON. Done.",
  "response": "{\n  \"output\": \"PLACEHOLDER\"\n}"
}

يفشل تماماً مع نتيجة “Placeholder”.

يبدو أنك قمت بتعديل المطالبات (prompts) لروبوت العناوين (titlebot)، هل يمكنك محاولة إصلاح هذا الخلل

مولد بواسطة الذكاء الاصطناعي

يمكنك نشر هذا النص:


تظهر سجلاتك عدم تطابق في إعدادات مولد العناوين: تطلب المطالبة قائمة بالعناوين، لكن مخطط مخرجات الهيكلية يتطلب أن يكون output عبارة عن سلسلة نصية (string). يتوقع Discourse مصفوفة (array)، لذا فإنه يتجاهل تلك الردود النصية – حتى لو كانت تحتوي على قائمة مشفرة بتنسيق JSON.

هل يمكنك تجربة الخطوات التالية؟

  1. انتقل إلى المشرف ← الذكاء الاصطناعي ← الوكلاء (Admin → AI → Agents) وافتح الوكيل المحدد لاقتراح العناوين، وهو عادةً مولد العناوين (Titles generator).
  2. في تنسيق الاستجابة الخاص به، ابحث عن المدخل ذو المفتاح output.
  3. غيّر نوعه من سلسلة نصية (String) إلى مصفوفة (Array)، وقم بتعيين نوع عناصر المصفوفة إلى سلسلة نصية (String).
  4. احفظ الإعدادات، ثم حاول مرة أخرى استخدام ميزة اقتراح عنوان الموضوع (Suggest topic title).

الإعداد المقصود هو:

[
  {
    "key": "output",
    "type": "array",
    "array_type": "string"
  }
]

هناك أيضًا تعليمات غير ذات صلة في مطالبة النظام بخصوص اقتراح #bbqoclock فقط. يمكنك إزالة هذه التعليمات إذا لم تكن مقصودة، مع الحفاظ على التعليمات التي تقضي بإرجاع اقتراحات العناوين كمصفوفة تحت المفتاح output.

إذا استمر الفشل، يرجى مشاركة إعدادات تنسيق الاستجابة المحفوظة وسجل حديث لطلب واستجابة النموذج اللغوي الكبير (LLM). في الطلب، يجب أن نرى الآن:

"output": {
  "type": "array",
  "items": {
    "type": "string"
  }
}