Skip to content

Commit

Permalink
[server] 4/n Update Use .env at the run step
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
Ankush Pala [email protected] committed Feb 29, 2024
1 parent d9d600c commit 8f5787f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/src/aiconfig/editor/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def run() -> FlaskResponse:

# Allow user to modify their environment keys without reloading the server.
# Execution time of `0.001s` is arbitrary, but should be small enough to not be noticeable.
dotenv.load_dotenv()
# Should override be set to True?
dotenv.load_dotenv(state.env_path)

aiconfig = state.aiconfig
request_json = request.get_json()
Expand Down

0 comments on commit 8f5787f

Please sign in to comment.