mistral upgrades
modified: README.rst modified: app.py modified: templates/base.html modified: templates/chat.html
This commit is contained in:
parent
0250bf77b1
commit
381588d6bc
4 changed files with 27 additions and 11 deletions
|
|
@ -135,6 +135,7 @@ To interact with the various language models, you can use the following commands
|
|||
- For Mistral-medium, send a message with ``mistral-medium`` and include your prompt.
|
||||
- For Mistral-large, send a message with ``mistral-large`` and include your prompt.
|
||||
- For Mistral-nemo, send a message with ``mistral-nemo`` and include your prompt.
|
||||
- For Mistral-codestral, send a message with ``mistral-codestral`` and include your prompt.
|
||||
- For Together OpenChat, send a message with ``together/openchat`` and include your prompt.
|
||||
- For Together Mistral, send a message with ``together/mistral`` and include your prompt.
|
||||
- For Together Mixtral, send a message with ``together/mixtral`` and include your prompt.
|
||||
|
|
|
|||
22
app.py
22
app.py
|
|
@ -71,7 +71,7 @@ system_users = [
|
|||
"mistral",
|
||||
"mistral-tiny",
|
||||
"mistral-small",
|
||||
"mistral-small-latest,
|
||||
"mistral-small-latest",
|
||||
"mistral-medium",
|
||||
"mistral-large-latest",
|
||||
"codestral-latest"
|
||||
|
|
@ -130,9 +130,9 @@ HELP_MESSAGE = """
|
|||
- `mistral-tiny`: For Mistral-tiny, send a message with `mistral-tiny` and include your prompt.
|
||||
- `mistral-small`: For Mistral-small, send a message with `mistral-small` and include your prompt.
|
||||
- `mistral-medium`: For Mistral-medium, send a message with `mistral-medium` and include your prompt.
|
||||
- `mistral-large`: For Mistral-large, send a message with `mistral-nemo` and include your prompt.
|
||||
- `mistral-nemo`: For Mistral-nemo, send a message with `mistral-codestral-latest` and include your prompt.
|
||||
- `mistral-codestral-latest`: For Mistral-codestral-latest, send a message with `mistral-nemo` and include your prompt.
|
||||
- `mistral-large`: For Mistral-large, send a message with `mistral-large` and include your prompt.
|
||||
- `mistral-nemo`: For Mistral-nemo, send a message with `mistral-nemo` and include your prompt.
|
||||
- `mistral-codestral`: For Mistral-codestral, send a message with `mistral-codestral` and include your prompt.
|
||||
- `together/openchat`: For Together OpenChat, send a message with `together/openchat` and include your prompt.
|
||||
- `together/mistral`: For Together Mistral, send a message with `together/mistral` and include your prompt.
|
||||
- `together/mixtral`: For Together Mixtral, send a message with `together/mixtral` and include your prompt.
|
||||
|
|
@ -858,13 +858,6 @@ def handle_message(data):
|
|||
room.name,
|
||||
model_name="mistral-small-latest",
|
||||
)
|
||||
if "mistral-codestral-latest" in data["message"]:
|
||||
gevent.spawn(
|
||||
chat_mistral,
|
||||
data["username"],
|
||||
room.name,
|
||||
model_name="codestral-latest",
|
||||
)
|
||||
if "mistral-medium" in data["message"]:
|
||||
gevent.spawn(
|
||||
chat_mistral,
|
||||
|
|
@ -886,6 +879,13 @@ def handle_message(data):
|
|||
room.name,
|
||||
model_name="mistral-large-latest",
|
||||
)
|
||||
if "mistral-codestral" in data["message"]:
|
||||
gevent.spawn(
|
||||
chat_mistral,
|
||||
data["username"],
|
||||
room.name,
|
||||
model_name="codestral-latest",
|
||||
)
|
||||
if "together/openchat" in data["message"]:
|
||||
gevent.spawn(
|
||||
chat_together,
|
||||
|
|
|
|||
|
|
@ -288,6 +288,13 @@
|
|||
<option value="vllm/qwq">vllm/qwq</option>
|
||||
<option value="ollama/qwen-coder">ollama/qwen-coder</option>
|
||||
<option value="ollama/deepseek-coder">ollama/deepseek-coder</option>
|
||||
|
||||
<option value="mistral-tiny">mistral-tiny</option>
|
||||
<option value="mistral-small">mistral-small</option>
|
||||
<option value="mistral-medium">mistral-medium</option>
|
||||
<option value="mistral-large">mistral-large</option>
|
||||
<option value="mistral-codestral">mistral-codestral</option>
|
||||
|
||||
<option value="gemini-flash">gemini-flash</option>
|
||||
<option value="gemini-flash-8b">gemini-flash-8b</option>
|
||||
<option value="gemini-pro">gemini-pro</option>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,13 @@
|
|||
<option value="vllm/qwq">vllm/qwq</option>
|
||||
<option value="ollama/qwen-coder">ollama/qwen-coder</option>
|
||||
<option value="ollama/deepseek-coder">ollama/deepseek-coder</option>
|
||||
|
||||
<option value="mistral-tiny">mistral-tiny</option>
|
||||
<option value="mistral-small">mistral-small</option>
|
||||
<option value="mistral-medium">mistral-medium</option>
|
||||
<option value="mistral-large">mistral-large</option>
|
||||
<option value="mistral-codestral">mistral-codestral</option>
|
||||
|
||||
<option value="gemini-flash">gemini-flash</option>
|
||||
<option value="gemini-flash-8b">gemini-flash-8b</option>
|
||||
<option value="gemini-pro">gemini-pro</option>
|
||||
|
|
@ -91,6 +98,7 @@ const VALID_VOICES = ['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'];
|
|||
const VALID_MODELS = [
|
||||
'None', 'gemini-flash', 'gemini-flash-8b', 'gemini-pro', 'grok-beta',
|
||||
'vllm/hermes', 'vllm/r1', 'vllm/qwq', 'ollama/qwen-coder', 'ollama/deepseek-coder',
|
||||
'mistral-tiny', 'mistral-small', 'mistral-medium', 'mistral-large', 'mistral-codestral',
|
||||
'gpt-4', 'gpt-4o-2024-08-06', 'gpt-mini', 'gpt-o1-mini', 'gpt-o1-preview', 'gpt-o1',
|
||||
'gpt-o3-mini', 'gpt-o3-mini-medium', 'gpt-o3-mini-high',
|
||||
'claude-haiku', 'claude-sonnet', 'claude-opus', 'dall-e-3'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue