fix: CAPTAIN_OPEN_AI_ENDPOINT presence not checked correctly (#12069)

This commit is contained in:
Shivam Mishra
2025-07-30 21:23:34 +04:00
committed by GitHub
parent 5ed84af2e3
commit 97f1825a14

View File

@@ -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