Update app.py
Browse files
app.py
CHANGED
@@ -99,9 +99,8 @@ if prompt := st.chat_input("Enter your prompt here..."):
|
|
99 |
try:
|
100 |
chat_completion = client.chat.completions.create(
|
101 |
model=model_option,
|
102 |
-
messages=[
|
103 |
-
{"role": "system","content": vikk},
|
104 |
-
{"role": m["role"], "content": m["content"]})
|
105 |
for m in st.session_state.messages
|
106 |
],
|
107 |
max_tokens=max_tokens,
|
|
|
99 |
try:
|
100 |
chat_completion = client.chat.completions.create(
|
101 |
model=model_option,
|
102 |
+
messages=[
|
103 |
+
{"role": "system","content": vikk} + {"role": m["role"], "content": m["content"]}
|
|
|
104 |
for m in st.session_state.messages
|
105 |
],
|
106 |
max_tokens=max_tokens,
|