حسنًا، لقد اختبرت نقطة النهاية (endpoint) باستخدام SSL داخل Discourse (حاوية التطبيق) وهي تعمل، لكنها لا تعمل من اختبار واجهة Discourse AI.
أستخدم مزود “OpenAI” مع عنوان URL التالي: https://llm.mydomain.tld/v1/chat/completions. بيانات الاعتماد صحيحة:
/var/www/discourse/plugins/discourse-ai/lib/completions/endpoints/base.rb:182:in 'DiscourseAi::Completions::Endpoints::Base#perform_completion!'
/var/www/discourse/plugins/discourse-ai/lib/completions/endpoints/open_ai_shared.rb:28:in 'DiscourseAi::Completions::Endpoints::OpenAiShared#perform_completion!'
/var/www/discourse/plugins/discourse-ai/lib/completions/llm.rb:214:in 'DiscourseAi::Completions::Llm#generate'
pitchfork-0.18.2/lib/pitchfork/soft_timeout.rb:46:in 'Pitchfork::SoftTimeout::Request#interrupt'
pitchfork-0.18.2/lib/pitchfork/soft_timeout.rb:94:in 'block (2 levels) in Pitchfork::SoftTimeout#create_timeout_thread'
pitchfork-0.18.2/lib/pitchfork/soft_timeout.rb:93:in 'Array#each'
pitchfork-0.18.2/lib/pitchfork/soft_timeout.rb:93:in 'block in Pitchfork::SoftTimeout#create_timeout_thread'
الأمر غريب، وقد حاولت حل هذه المشكلة منذ أسابيع.
لقد جربت ما يلي بالفعل:
التعديل 1: DISCOURSE_ALLOWED_INTERNAL_HOSTS: 172.16.X.X (عنوان IP لحاوية LiteLLM، و 127.0.0.1، والنطاق المضيف لـ LLM الذي تم إنهاء SSL الخاص به، ولا أعتقد أنه مطلوب إضافته هنا)
التعديل 2: وأرى نفس خطأ 500 عند محاولة الدخول لتكوين خادم MCP الخاص بي (تكوين علامة تبويب discourse-ai لخادم MCP).