From 97f1825a1479dda1cc33df8a8571d65dce0fd3c0 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 30 Jul 2025 21:23:34 +0400 Subject: [PATCH] fix: `CAPTAIN_OPEN_AI_ENDPOINT` presence not checked correctly (#12069) --- enterprise/app/services/llm/base_open_ai_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enterprise/app/services/llm/base_open_ai_service.rb b/enterprise/app/services/llm/base_open_ai_service.rb index 04909cbf4..2d3932246 100644 --- a/enterprise/app/services/llm/base_open_ai_service.rb +++ b/enterprise/app/services/llm/base_open_ai_service.rb @@ -15,7 +15,8 @@ class Llm::BaseOpenAiService private def uri_base - InstallationConfig.find_by(name: 'CAPTAIN_OPEN_AI_ENDPOINT')&.value || 'https://api.openai.com/' + endpoint = InstallationConfig.find_by(name: 'CAPTAIN_OPEN_AI_ENDPOINT')&.value + endpoint.presence || 'https://api.openai.com/' end def setup_model