Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ prompt = '请你扮演《西游记》中的唐三藏,使用唐三藏的语气
|
|
15 |
def chat(p, qid, uid):
|
16 |
return ["text", callapi(p)]
|
17 |
|
18 |
-
openai.api_key = os.getenv("
|
19 |
def callapi(p):
|
20 |
response = openai.ChatCompletion.create(
|
21 |
model="gpt-3.5-turbo",
|
|
|
15 |
def chat(p, qid, uid):
|
16 |
return ["text", callapi(p)]
|
17 |
|
18 |
+
openai.api_key = os.getenv("key")
|
19 |
def callapi(p):
|
20 |
response = openai.ChatCompletion.create(
|
21 |
model="gpt-3.5-turbo",
|