NeuralNotwork commited on
Commit
7af0caa
·
verified ·
1 Parent(s): 333c319

Update get_key.py

Browse files
Files changed (1) hide show
  1. tools/get_key.py +8 -0
tools/get_key.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ """Template for custom function or Pydantic model."""
2
+
3
+ import os
4
+
5
+
6
+ def get_key() -> str:
7
+ """Get the key from environment variable."""
8
+ return os.environ.get("OPENAI_API_KEY", "")