From 65effbe23f3f4bd4751cd533d564f37230cd7dea Mon Sep 17 00:00:00 2001 From: James Hush Date: Wed, 27 Mar 2024 23:38:55 +0800 Subject: [PATCH] fix: force overriding environment variables from .env files (#89) --- examples/foundational/01-say-one-thing.py | 2 +- examples/foundational/02-llm-say-one-thing.py | 2 +- examples/foundational/03-still-frame.py | 2 +- examples/foundational/04-utterance-and-speech.py | 2 +- examples/foundational/05-sync-speech-and-image.py | 2 +- examples/foundational/06-listen-and-respond.py | 2 +- examples/foundational/06a-image-sync.py | 2 +- examples/foundational/07-interruptible.py | 2 +- examples/foundational/08-bots-arguing.py | 2 +- examples/foundational/10-wake-word.py | 2 +- examples/foundational/11-sound-effects.py | 2 +- examples/foundational/13-whisper-transcription.py | 2 +- examples/internal/11a-dial-out.py | 2 +- examples/server/daily-bot-manager.py | 2 +- examples/starter-apps/chatbot.py | 2 +- examples/starter-apps/patient-intake.py | 2 +- examples/starter-apps/storybot.py | 2 +- examples/starter-apps/translator.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/foundational/01-say-one-thing.py b/examples/foundational/01-say-one-thing.py index c92e28419..e0195ef8c 100644 --- a/examples/foundational/01-say-one-thing.py +++ b/examples/foundational/01-say-one-thing.py @@ -11,7 +11,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/02-llm-say-one-thing.py b/examples/foundational/02-llm-say-one-thing.py index e773b7ddb..84589c2d2 100644 --- a/examples/foundational/02-llm-say-one-thing.py +++ b/examples/foundational/02-llm-say-one-thing.py @@ -13,7 +13,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/03-still-frame.py b/examples/foundational/03-still-frame.py index e1be8f57c..3464f26be 100644 --- a/examples/foundational/03-still-frame.py +++ b/examples/foundational/03-still-frame.py @@ -11,7 +11,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/04-utterance-and-speech.py b/examples/foundational/04-utterance-and-speech.py index 7a57cc0e6..0ce76ff39 100644 --- a/examples/foundational/04-utterance-and-speech.py +++ b/examples/foundational/04-utterance-and-speech.py @@ -15,7 +15,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/05-sync-speech-and-image.py b/examples/foundational/05-sync-speech-and-image.py index 35985a8d8..7211bd155 100644 --- a/examples/foundational/05-sync-speech-and-image.py +++ b/examples/foundational/05-sync-speech-and-image.py @@ -31,7 +31,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/06-listen-and-respond.py b/examples/foundational/06-listen-and-respond.py index c1112d01f..4c1018d5c 100644 --- a/examples/foundational/06-listen-and-respond.py +++ b/examples/foundational/06-listen-and-respond.py @@ -16,7 +16,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/06a-image-sync.py b/examples/foundational/06a-image-sync.py index 37c2ac7fe..5d0919385 100644 --- a/examples/foundational/06a-image-sync.py +++ b/examples/foundational/06a-image-sync.py @@ -19,7 +19,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/07-interruptible.py b/examples/foundational/07-interruptible.py index 5faf82dec..f6ca27402 100644 --- a/examples/foundational/07-interruptible.py +++ b/examples/foundational/07-interruptible.py @@ -16,7 +16,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/08-bots-arguing.py b/examples/foundational/08-bots-arguing.py index 42e4d81cc..ff85318cd 100644 --- a/examples/foundational/08-bots-arguing.py +++ b/examples/foundational/08-bots-arguing.py @@ -15,7 +15,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/10-wake-word.py b/examples/foundational/10-wake-word.py index cd82a59e3..39f2decff 100644 --- a/examples/foundational/10-wake-word.py +++ b/examples/foundational/10-wake-word.py @@ -25,7 +25,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/11-sound-effects.py b/examples/foundational/11-sound-effects.py index 97101f2a8..767dbfb89 100644 --- a/examples/foundational/11-sound-effects.py +++ b/examples/foundational/11-sound-effects.py @@ -23,7 +23,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/foundational/13-whisper-transcription.py b/examples/foundational/13-whisper-transcription.py index 89fbcdacf..eaa9a3bc2 100644 --- a/examples/foundational/13-whisper-transcription.py +++ b/examples/foundational/13-whisper-transcription.py @@ -7,7 +7,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/internal/11a-dial-out.py b/examples/internal/11a-dial-out.py index 1ed1339ee..ee23bc9ce 100644 --- a/examples/internal/11a-dial-out.py +++ b/examples/internal/11a-dial-out.py @@ -13,7 +13,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) sounds = {} sound_files = [ diff --git a/examples/server/daily-bot-manager.py b/examples/server/daily-bot-manager.py index 5ad7f72cd..a1c2c102c 100644 --- a/examples/server/daily-bot-manager.py +++ b/examples/server/daily-bot-manager.py @@ -9,7 +9,7 @@ from auth import get_meeting_token from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) app = Flask(__name__) CORS(app) diff --git a/examples/starter-apps/chatbot.py b/examples/starter-apps/chatbot.py index 8ff3cfdfe..1c40a3413 100644 --- a/examples/starter-apps/chatbot.py +++ b/examples/starter-apps/chatbot.py @@ -27,7 +27,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/starter-apps/patient-intake.py b/examples/starter-apps/patient-intake.py index aee1d1f32..7a35631d7 100644 --- a/examples/starter-apps/patient-intake.py +++ b/examples/starter-apps/patient-intake.py @@ -35,7 +35,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format="%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/starter-apps/storybot.py b/examples/starter-apps/storybot.py index 69070da0e..c001ec673 100644 --- a/examples/starter-apps/storybot.py +++ b/examples/starter-apps/storybot.py @@ -37,7 +37,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai") diff --git a/examples/starter-apps/translator.py b/examples/starter-apps/translator.py index c7dcf581a..04be82d8e 100644 --- a/examples/starter-apps/translator.py +++ b/examples/starter-apps/translator.py @@ -17,7 +17,7 @@ from runner import configure from dotenv import load_dotenv -load_dotenv() +load_dotenv(override=True) logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") logger = logging.getLogger("dailyai")