Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ endpoint = ""
|
|
| 10 |
hardware_option = ""
|
| 11 |
api_key = ""
|
| 12 |
base_url = ""
|
| 13 |
-
|
| 14 |
|
| 15 |
with st.sidebar:
|
| 16 |
st.button("Start New Chat", on_click=clear_chat)
|
|
@@ -37,7 +37,7 @@ if prompt := st.chat_input("What is up?"):
|
|
| 37 |
|
| 38 |
with st.chat_message("assistant"):
|
| 39 |
stream = client.chat.completions.create(
|
| 40 |
-
model=
|
| 41 |
messages=[
|
| 42 |
{"role": m["role"], "content": m["content"]}
|
| 43 |
for m in st.session_state.messages
|
|
|
|
| 10 |
hardware_option = ""
|
| 11 |
api_key = ""
|
| 12 |
base_url = ""
|
| 13 |
+
model_name = ""
|
| 14 |
|
| 15 |
with st.sidebar:
|
| 16 |
st.button("Start New Chat", on_click=clear_chat)
|
|
|
|
| 37 |
|
| 38 |
with st.chat_message("assistant"):
|
| 39 |
stream = client.chat.completions.create(
|
| 40 |
+
model=model_name,
|
| 41 |
messages=[
|
| 42 |
{"role": m["role"], "content": m["content"]}
|
| 43 |
for m in st.session_state.messages
|