Lilly
( Lilly)
16 Dicembre 2025, 8:43pm
1
Sto cercando di configurare un LLM per Discourse AI e ricevo questo errore quando eseguo un test:
Ho 2 istanze self-hosted e su una istanza gli LLM funzionano correttamente. Sull’altra istanza ricevo quell’errore durante la configurazione di qualsiasi LLM. Installazione fresca e Discourse aggiornato a b9e6c29871
4 Mi Piace
Spiacente @Lilly , questo dovrebbe essere risolto da
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 Mi Piace