Skip to content

Commit

Permalink
fix: Override token envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramimashkouk committed Dec 4, 2024
1 parent 5b915c0 commit 047d155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from chatsky_ui.core.config import settings


load_dotenv(os.path.join(settings.work_directory, ".env"))
load_dotenv(os.path.join(settings.work_directory, ".env"), override=True)

class Interface(BaseComponent):
model_config = {
Expand Down
2 changes: 1 addition & 1 deletion backend/chatsky_ui/services/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def start(self, build_id: int, preset: Preset) -> int:
id_ = self.last_id
process = RunProcess(id_, build_id, preset.end_status)

load_dotenv(os.path.join(settings.work_directory, ".env"))
load_dotenv(os.path.join(settings.work_directory, ".env"), override=True)
await process.start(cmd_to_run)
process.logger.debug("Started process. status: '%s'", process.process.returncode)
self.processes[id_] = process
Expand Down

0 comments on commit 047d155

Please sign in to comment.