Skip to content

Commit 6c3301f

Browse files
committed
Add note about .env files from parent folders
It was extremely confusing to me why an API key was being used within VSCode terminal that wasn't my OpenInterpreter key. This note might save other people time.
1 parent c287953 commit 6c3301f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interpreter/core/llm/llm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
44
import sys
55

6+
# Note: litellm in DEV mode will load .env files from the current directory
7+
# and all parent directories. This can lead to unexpected API keys being loaded
8+
# if there are .env files in parent folders.
69
import litellm
710

811
litellm.suppress_debug_info = True

0 commit comments

Comments
 (0)