We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92a2e57 + 49ee5db commit ab7801eCopy full SHA for ab7801e
2 files changed
.gitignore
@@ -47,4 +47,7 @@ logs/
47
# Windows
48
Thumbs.db
49
ehthumbs.db
50
-Desktop.ini
+Desktop.ini
51
+
52
+# Environment variables
53
+.env
fastapi/solution-files/service.py
@@ -1,7 +1,10 @@
1
from openai import OpenAI
2
+from dotenv import load_dotenv
3
import json
4
import os
5
6
+load_dotenv()
7
8
client = OpenAI(
9
api_key=os.environ.get("OPENAI_API_KEY"),
10
base_url="https://api.openai.com/v1"
0 commit comments