Nun, ich habe den Endpunkt mit SSL innerhalb von Discourse (App-Container) getestet, und er funktioniert, aber nicht im Test der Discourse AI-Benutzeroberfläche.
Ich verwende den Provider „OpenAI“ mit der URL „https://llm.mydomain.tld/v1/chat/completions“. Die Anmeldeinformationen sind korrekt:
/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'
Es ist seltsam, und ich versuche schon seit Wochen, das Problem zu lösen.
Bereits versucht:
EDIT 1: DISCOURSE_ALLOWED_INTERNAL_HOSTS: 172.16.X.X (LiteLLM-Container-IP, 127.0.0.1 und der SSL-terminierte LLM-Domain-Host, von dem ich verstehe, dass er hier nicht angegeben werden muss)
EDIT 2: Und ich sehe den gleichen 500-Fehler, wenn ich versuche, meinen MCP-Server zu konfigurieren (Konfiguration im Tab „MCP discourse-ai“).