Spaces:
Sleeping
Sleeping
research14
commited on
Commit
•
6204d1b
1
Parent(s):
1941971
test
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ template_single = '''Please output any <{}> in the following sentence one per li
|
|
13 |
|
14 |
def update_api_key(new_key):
|
15 |
global api_key
|
16 |
-
os.environ['OPENAI_API_TOKEN'] = new_key
|
17 |
openai.api_key = os.environ['OPENAI_API_TOKEN']
|
18 |
|
19 |
def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
|
|
|
13 |
|
14 |
def update_api_key(new_key):
|
15 |
global api_key
|
16 |
+
os.environ['OPENAI_API_TOKEN'] = new_key
|
17 |
openai.api_key = os.environ['OPENAI_API_TOKEN']
|
18 |
|
19 |
def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
|