Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 6f477f6

Browse files
committed
DEV: Unreachable LLM error shouldn't prevent setting
Previously we had the behaviour for model settings so that when you try and set a model, it runs a test and returns an error if it can't run the test successfully. The error then prevents you from setting the site setting. This results in some issues when we try and automate things. This PR updates that so that the test runs and discreetly logs the changes, but doesn't prevent the setting from being set. Instead we rely on "run test" in the LLM config along with ProblemChecks to catch issues.
1 parent 6a7a45f commit 6f477f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/configuration/llm_validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def valid_value?(val)
2121
rescue StandardError => e
2222
raise e if Rails.env.test?
2323
@unreachable = true
24-
false
24+
true
2525
end
2626

2727
def run_test(val)

0 commit comments

Comments
 (0)