Skip to content

Commit add013d

Browse files
authored
Merge pull request #1593 from endolith/llm_api
Add note about .env files from parent folders
2 parents b3c25b7 + 6c3301f commit add013d

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)