Add OpenAI token configuration to self-hosting settings (#122)

* feat: add OpenAI settings partial
This commit is contained in:
Juan José Mata
2025-08-22 23:04:59 -07:00
committed by GitHub
parent d054cd0bb2
commit 5d6915a994
10 changed files with 82 additions and 12 deletions

View File

@@ -46,6 +46,14 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
end
end
test "can update openai access token when self hosting is enabled" do
with_self_hosting do
patch settings_hosting_url, params: { setting: { openai_access_token: "token" } }
assert_equal "token", Setting.openai_access_token
end
end
test "can clear data cache when self hosting is enabled" do
account = accounts(:investment)
holding = account.holdings.first