Update app.py
Browse files
app.py
CHANGED
|
@@ -50,10 +50,7 @@ def reset_conversation():
|
|
| 50 |
|
| 51 |
def get_assistant_aswer(st_model, st_messages, st_temp_value, st_max_tokens):
|
| 52 |
response = ""
|
| 53 |
-
|
| 54 |
-
st.write ("temp: " + str(st_temp_value))
|
| 55 |
-
st.write ("max_tokens: " + str(st_max_tokens))
|
| 56 |
-
|
| 57 |
#try:
|
| 58 |
stream = client.chat.completions.create(
|
| 59 |
model=st_model,
|
|
@@ -76,7 +73,7 @@ def get_assistant_aswer(st_model, st_messages, st_temp_value, st_max_tokens):
|
|
| 76 |
|
| 77 |
def retry_last():
|
| 78 |
lastmessage = st.session_state.messages.pop()
|
| 79 |
-
st.
|
| 80 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
| 81 |
# with st.chat_message("assistant"):
|
| 82 |
# st.write(response)
|
|
|
|
| 50 |
|
| 51 |
def get_assistant_aswer(st_model, st_messages, st_temp_value, st_max_tokens):
|
| 52 |
response = ""
|
| 53 |
+
|
|
|
|
|
|
|
|
|
|
| 54 |
#try:
|
| 55 |
stream = client.chat.completions.create(
|
| 56 |
model=st_model,
|
|
|
|
| 73 |
|
| 74 |
def retry_last():
|
| 75 |
lastmessage = st.session_state.messages.pop()
|
| 76 |
+
st.toast("popped msg: " + lastmessage["content"])
|
| 77 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
| 78 |
# with st.chat_message("assistant"):
|
| 79 |
# st.write(response)
|