]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
API keys moved:
authorAidan Cornelius-Bell <[email protected]>
Mon, 13 Jan 2025 01:58:15 +0000 (12:28 +1030)
committerAidan Cornelius-Bell <[email protected]>
Mon, 13 Jan 2025 01:58:15 +0000 (12:28 +1030)
- Moved Kagi summariser API key to .env
- All API keys are now stored in .env (not Rails env secrets)
... Enables easier circulation and test environments (more tests coming)

app/services/kagi_summarizer_service.rb

index 2fc40301794aaa828b458ed677035135b429d143..beaa1296a51c1704593c8fb2c66994c79f47b061 100644 (file)
@@ -5,7 +5,7 @@ class KagiSummarizerService
   def initialize
     @options = {
       headers: {
-        'Authorization': "Bot #{Rails.application.credentials.kagi[:api_key]}",
+        'Authorization': "Bot #{ENV['KAGI_API_KEY']}",
         'Content-Type': 'application/json'
       }
     }