Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def generate_text(api_type, engine, openAI_key, openAI_base,
|
|
106 |
openai.api_version = openAI_API_version
|
107 |
openai.api_key = openAI_key
|
108 |
completions = openai.ChatCompletion.create(engine=engine,
|
109 |
-
max_tokens=
|
110 |
n=1,
|
111 |
stop=None,
|
112 |
temperature=temperature,
|
|
|
106 |
openai.api_version = openAI_API_version
|
107 |
openai.api_key = openAI_key
|
108 |
completions = openai.ChatCompletion.create(engine=engine,
|
109 |
+
max_tokens=2048,
|
110 |
n=1,
|
111 |
stop=None,
|
112 |
temperature=temperature,
|