Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
|
|
4 |
st.title("ChatGPT-Clone")
|
5 |
|
6 |
if "openai_model" not in st.session_state:
|
7 |
-
st.session_state["openai_model"] = "gpt-
|
8 |
|
9 |
|
10 |
if "messages" not in st.session_state:
|
@@ -37,7 +37,7 @@ if prompt := st.chat_input("What is up?"):
|
|
37 |
{"role": m["role"], "content": m["content"]}
|
38 |
for m in st.session_state.messages
|
39 |
],
|
40 |
-
max_tokens=
|
41 |
stream=True,
|
42 |
):
|
43 |
full_response += response.choices[0].delta.get("content", "")
|
|
|
4 |
st.title("ChatGPT-Clone")
|
5 |
|
6 |
if "openai_model" not in st.session_state:
|
7 |
+
st.session_state["openai_model"] = "gpt-3.5-turbo-16k"
|
8 |
|
9 |
|
10 |
if "messages" not in st.session_state:
|
|
|
37 |
{"role": m["role"], "content": m["content"]}
|
38 |
for m in st.session_state.messages
|
39 |
],
|
40 |
+
max_tokens=12000,
|
41 |
stream=True,
|
42 |
):
|
43 |
full_response += response.choices[0].delta.get("content", "")
|