umair894 commited on
Commit
885da90
1 Parent(s): 5fef656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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,