mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 09:53:24 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user