Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def chatbot(input_text):
|
|
150 |
|
151 |
def chat(MSGS, MaxToken=50, outputs=3):
|
152 |
# We use the Chat Completion endpoint for chat like inputs
|
153 |
-
response = OpenAI.
|
154 |
# model used here is ChatGPT
|
155 |
# You can use all these models for this endpoint:
|
156 |
# gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314,
|
|
|
150 |
|
151 |
def chat(MSGS, MaxToken=50, outputs=3):
|
152 |
# We use the Chat Completion endpoint for chat like inputs
|
153 |
+
response = OpenAI.Completion.create(
|
154 |
# model used here is ChatGPT
|
155 |
# You can use all these models for this endpoint:
|
156 |
# gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314,
|