File size: 199 Bytes
d97a6fa
 
 
ceb063f
d97a6fa
eee1c6d
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import os


def set_api_key(api_key):
    os.environ['OPENAI_API_KEY'] = api_key
    return api_key


def stop_api_key(value):
    os.environ.pop('OPENAI_API_KEY', None)
    return 'Stopped API key'