Lilly
( Lilly)
16. Dezember 2025 um 20:43
1
versuche, ein LLM für Discourse AI zu konfigurieren, und ich erhalte diesen Fehler, wenn ich einen Test ausführe:
Ich habe 2 selbst gehostete Instanzen und auf einer Instanz funktionieren die LLMs einwandfrei. Auf der anderen Instanz erhalte ich diesen Fehler beim Einrichten eines beliebigen LLMs. Frische Installation und aktuelles Discourse auf b9e6c29871
4 „Gefällt mir“
Das tut mir leid, @Lilly , das sollte behoben sein durch
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 „Gefällt mir“