Update openai_requests.py
Browse files- openai_requests.py +1 -1
openai_requests.py
CHANGED
@@ -6,7 +6,7 @@ def get_completion_from_openai(prompt, max_tokens):
|
|
6 |
|
7 |
headers = {
|
8 |
"Content-Type": "application/json",
|
9 |
-
"Authorization": "Bearer " + st.secrets["
|
10 |
}
|
11 |
|
12 |
response = requests.post(baseUrl,
|
|
|
6 |
|
7 |
headers = {
|
8 |
"Content-Type": "application/json",
|
9 |
+
"Authorization": "Bearer " + st.secrets["OPENAI_TOKEN"],
|
10 |
}
|
11 |
|
12 |
response = requests.post(baseUrl,
|