Artin2009 commited on
Commit
e1375ee
1 Parent(s): 58e3b00

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +4 -4
chain_app.py CHANGED
@@ -195,7 +195,7 @@ async def chat_profile():
195
  markdown_description="Open Source model Zephyr with 7B parameters",
196
  ),
197
  cl.ChatProfile(
198
- name='mistral-7B',
199
  markdown_description = 'mistral open source LLM with 7B parameters'
200
  ),
201
  # cl.ChatProfile(
@@ -1028,13 +1028,13 @@ async def on_chat_start():
1028
  await cl.Message(
1029
  content="Im Zephyr. One of the best open source LLMs. i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
1030
  ).send()
1031
- if chat_profile == 'mistral-7B':
1032
  await cl.ChatSettings(
1033
  [
1034
  Select(
1035
  id="Mistral-Model",
1036
  label="Mistral - Model",
1037
- values=["Mistral-7B"],
1038
  initial_index=0,
1039
  ),
1040
  Slider(
@@ -1546,7 +1546,7 @@ async def main(message: cl.Message):
1546
  content=model_response
1547
  ).send()
1548
 
1549
- elif chat_profile == 'mistral-7B':
1550
  completion = groq_client.chat.completions.create(
1551
  model="mixtral-8x7b-32768",
1552
  messages=[
 
195
  markdown_description="Open Source model Zephyr with 7B parameters",
196
  ),
197
  cl.ChatProfile(
198
+ name='mixtral-8x7B',
199
  markdown_description = 'mistral open source LLM with 7B parameters'
200
  ),
201
  # cl.ChatProfile(
 
1028
  await cl.Message(
1029
  content="Im Zephyr. One of the best open source LLMs. i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
1030
  ).send()
1031
+ if chat_profile == 'mixtral-8x7B':
1032
  await cl.ChatSettings(
1033
  [
1034
  Select(
1035
  id="Mistral-Model",
1036
  label="Mistral - Model",
1037
+ values=["mixtral-8x7B"],
1038
  initial_index=0,
1039
  ),
1040
  Slider(
 
1546
  content=model_response
1547
  ).send()
1548
 
1549
+ elif chat_profile == 'mixtral-8x7B':
1550
  completion = groq_client.chat.completions.create(
1551
  model="mixtral-8x7b-32768",
1552
  messages=[