Spaces:
No application file
No application file
Update get_key.py
Browse files- 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", "")
|