Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ import sys
|
|
14 |
import os
|
15 |
|
16 |
API_BASE = "env"
|
17 |
-
api_key = os.environ['
|
|
|
18 |
base_url = os.environ.get('OPENAI_BASE_URL', "https://api.openai.com/v1")
|
19 |
def_models = '["gpt-4", "gpt-4-0125-preview", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-turbo-preview", "chatgpt-4o-latest", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o-mini", "gpt-4o-mini-2024-07-18"]'
|
20 |
|
|
|
14 |
import os
|
15 |
|
16 |
API_BASE = "env"
|
17 |
+
api_key = os.environ['API_KEY']
|
18 |
+
oai_api_key = os.environ['OPENAI_API_KEY']
|
19 |
base_url = os.environ.get('OPENAI_BASE_URL', "https://api.openai.com/v1")
|
20 |
def_models = '["gpt-4", "gpt-4-0125-preview", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-turbo-preview", "chatgpt-4o-latest", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o-mini", "gpt-4o-mini-2024-07-18"]'
|
21 |
|