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

Commit 059b3fa

Browse files
authored
DEV: Unreachable LLM error shouldn't prevent setting (#1036)
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 059b3fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/configuration/llm_validator.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def valid_value?(val)
2020
run_test(val).tap { |result| @unreachable = result }
2121
rescue StandardError => e
2222
raise e if Rails.env.test?
23-
@unreachable = true
24-
false
23+
true
2524
end
2625

2726
def run_test(val)

0 commit comments

Comments
 (0)