mirror of
https://github.com/maglore9900/max_headroom.git
synced 2025-06-06 03:25:34 +00:00
cleaned up env variable case
This commit is contained in:
parent
b57734309e
commit
8190dc8685
@ -5,6 +5,7 @@ OPENAI_MODEL='gpt-4o-mini'
|
||||
#OLLAMA_MODEL will take any model you can load in ollama
|
||||
OLLAMA_MODEL='gemma2'
|
||||
OLLAMA_URL='http://localhost:11434'
|
||||
CHARACTER='max'
|
||||
spotify_client_id = ''
|
||||
spotify_client_secret = ''
|
||||
spotify_redirect_uri = 'http://localhost:8888/callback'
|
||||
|
@ -36,9 +36,9 @@ def handle_spotify_errors_and_device(func):
|
||||
|
||||
class Spotify:
|
||||
def __init__(self, env):
|
||||
spotify_client_id = env("spotify_client_id", default=None)
|
||||
spotify_client_secret = env("spotify_client_secret", default=None)
|
||||
spotify_redirect_uri = env("spotify_redirect_uri", default=None)
|
||||
spotify_client_id = env("SPOTIFY_CLIENT_ID", default=None)
|
||||
spotify_client_secret = env("SPOTIFY_CLIENT_SECRET", default=None)
|
||||
spotify_redirect_uri = env("SPOTIFY_REDIRECT_URI", default=None)
|
||||
if not (spotify_client_id and spotify_client_secret and spotify_redirect_uri):
|
||||
print("Spotify environment variables missing. Skipping Spotify initialization.")
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user