Cómo usar los endpoints de IA internos

Bueno, probé el endpoint con SSL dentro de Discourse (contenedor de la aplicación) y funciona, pero no desde la prueba de la interfaz de usuario de Discourse AI.

Estoy usando el proveedor ‘OpenAI’ con ‘https://llm.mydomain.tld/v1/chat/completions’ como URL. Las credenciales son correctas:

/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 extraño, y he estado intentando solucionarlo durante semanas.


Ya intenté lo siguiente:

EDIT 1: DISCOURSE_ALLOWED_INTERNAL_HOSTS: 172.16.X.X (IP del contenedor LiteLLM, 127.0.0.1 y el host del dominio LLM con terminación SSL, entiendo que no se requiere que esté aquí)

EDIT 2: Y veo el mismo error 500 al intentar acceder para configurar mi servidor MCP (configuración de la pestaña discourse-ai de MCP).