Lilly
( Lilly)
16 Diciembre, 2025 20:43
1
intentando configurar un modelo de lenguaje grande (LLM) para Discourse AI y estoy obteniendo este error cuando ejecuto una prueba:
Tengo 2 instancias autoalojadas y en una instancia los LLM funcionan bien. En la otra instancia obtengo ese error al configurar cualquiera de ellos. Instalación nueva y Discourse actualizado en b9e6c29871
4 Me gusta
Lo siento @Lilly , esto debería estar solucionado por
main ← fix-skip-failure-tracking-for-unsaved-llm-models
opened 09:31PM - 16 Dec 25 UTC
When testing a new LLM configuration in the admin panel, if the test fails (e.g.… , invalid API key), users see "Target can't be blank" instead of the actual error from the LLM provider.
This happens because `track_failures` attempts to create a ProblemCheckTracker using `llm_model.id` as the target, but unsaved models have `id = nil`, which fails the `validates :target, presence: true` validation.
The fix adds a `new_record?` check to skip failure tracking for unsaved models, consistent with the existing checks for `blank?` and `seeded?`.
Ref - https://meta.discourse.org/t/391497
(cc @Roman )
2 Me gusta