Skip to content

Commit

Permalink
4/n 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 700b7df commit d491230
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 d491230

Please sign in to comment.