FIX: use blank? check for role_arn validation (#36009)

Using blank? instead of truthiness check handles both nil and empty
strings, fixing the "Run test" on the LLM admin screen.
This commit is contained in:
Rafael dos Santos Silva
2025-11-13 16:00:19 -03:00
committed by GitHub
parent 3184ac4700
commit 9bb15488bd
+1 -1
View File
@@ -193,7 +193,7 @@ class LlmModel < ActiveRecord::Base
return nil unless provider == BEDROCK_PROVIDER_NAME
role_arn = lookup_custom_param("role_arn")
return nil unless role_arn
return nil if role_arn.blank?
# Invalidate cache if role_arn changed
if @cached_role_arn != role_arn