Skip to content

Commit

Permalink
feat: hardcoded list of models shown in datalist
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyl1u committed Mar 22, 2024
1 parent 5a90e90 commit 8d9e7b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/components/chat/Settings/Models.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
let deleteModelTag = '';
let modelsList = ["gemma","llama2","mistral","mixtral","llava","neural-chat","codellama","dolphin-mixtral","qwen","llama2-uncensored","mistral-openorca","deepseek-coder","nous-hermes2","phi","orca-mini","dolphin-mistral","wizard-vicuna-uncensored","vicuna","tinydolphin","llama2-chinese","openhermes","zephyr","nomic-embed-text","tinyllama","openchat","wizardcoder","phind-codellama","starcoder","yi","orca2","starcoder2","falcon","wizard-math","dolphin-phi","nous-hermes","starling-lm","stable-code","medllama2","bakllava","codeup","wizardlm-uncensored","solar","everythinglm","sqlcoder","nous-hermes2-mixtral","stable-beluga","yarn-mistral","stablelm2","samantha-mistral","meditron","stablelm-zephyr","magicoder","yarn-llama2","wizard-vicuna","llama-pro","deepseek-llm","dolphincoder","codebooga","mistrallite","nexusraven","open-orca-platypus2","all-minilm","goliath","notux","alfred","megadolphin","xwinlm","wizardlm","duckdb-nsql","notus"];
const updateModelsHandler = async () => {
for (const model of $models.filter(
(m) =>
Expand Down Expand Up @@ -532,7 +534,13 @@
modelTag: 'mistral:7b'
})}
bind:value={modelTag}
list="model-tags"
/>
<datalist id="model-tags">
{#each modelsList as model}
<option value={model}></option>
{/each}
</datalist>
</div>
<button
class="px-2.5 bg-gray-100 hover:bg-gray-200 text-gray-800 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-100 rounded-lg transition"
Expand Down

0 comments on commit 8d9e7b2

Please sign in to comment.