Skip to content

Commit

Permalink
feat(models): support 'grok-beta' model
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Nov 5, 2024
1 parent ce78ed4 commit 15178d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
<div class="transition-opacity" class:op-0={!inView} class:duration-400={inView}>
<div class="mb-0.6 ml-0.2 mt-0.3 flex flex-row select-none items-center gap-0.7 text-2.6 tracking-wider transition-font-size md:text-3 sm:text-2.8">
已支持
<div class="i-logos-meta-icon text-0.8em" />
最新的 llama 3.2
<div class="i-bi-twitter-x text-0.8em" />
最新的 grok-beta
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/components/controls/ModelItem.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script context="module" lang=ts>
import { persisted } from 'svelte-persisted-store'
type Model = 'gpt-3.5-turbo-0125' | 'gpt-4o-mini-2024-07-18' | 'Qwen/Qwen2.5-32B-Instruct' | 'deepseek-ai/DeepSeek-V2.5' | 'THUDM/glm-4-9b-chat' | 'internlm/internlm2_5-20b-chat' | 'mixtral-8x7b-32768' | 'gemma2-9b-it' | 'nous-hermes-2-mixtral-8x7b-dpo' | 'llama-3.2-90b-text-preview' | 'llama3.1-70b' | 'azure:gpt-4o' | 'azure:gpt-4o-mini' | 'AI21-Jamba-1.5-Large' | 'AI21-Jamba-1.5-Mini' | 'Phi-3.5-MoE-instruct' | 'Meta-Llama-3.1-405B-Instruct' | 'Mistral-Nemo' | 'Mistral-large-2407' | 'yi-lightning';
type Model = 'gpt-3.5-turbo-0125' | 'gpt-4o-mini-2024-07-18' | 'Qwen/Qwen2.5-32B-Instruct' | 'deepseek-ai/DeepSeek-V2.5' | 'THUDM/glm-4-9b-chat' | 'internlm/internlm2_5-20b-chat' | 'mixtral-8x7b-32768' | 'gemma2-9b-it' | 'nous-hermes-2-mixtral-8x7b-dpo' | 'llama-3.2-90b-text-preview' | 'llama3.1-70b' | 'azure:gpt-4o' | 'azure:gpt-4o-mini' | 'AI21-Jamba-1.5-Large' | 'AI21-Jamba-1.5-Mini' | 'Phi-3.5-MoE-instruct' | 'Meta-Llama-3.1-405B-Instruct' | 'Mistral-Nemo' | 'Mistral-large-2407' | 'yi-lightning' | 'grok-beta';
const defaultModel = (import.meta.env.PUBLIC_DEFAULT_MODEL ?? 'gpt-4o-mini') as Model
Expand Down
3 changes: 2 additions & 1 deletion src/components/controls/ModelSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<ModelItem id="gpt-3.5-turbo-0125" name="gpt-3.5-turbo" title="填写自己的 API Key 以使用" />
<ModelItem id="gpt-4o-mini-2024-07-18" name="gpt-4o-mini" title="🔥 OpenAI 最新的全能模型" />
<ModelItem id="nous-hermes-2-mixtral-8x7b-dpo" name="nous-hermes-2" title="基于 Mixtral 的 MOE 模型" />
<ModelItem id="internlm/internlm2_5-20b-chat" name="internlm2.5-20b" title="✨ 书生·浦语" />
<ModelItem id="grok-beta" name="grok-beta" title="🚀 马斯克 x.ai 推出的 Grok" />
<!-- <ModelItem id="internlm/internlm2_5-20b-chat" name="internlm2.5-20b" title="✨ 书生·浦语" /> -->
<ModelItem id="Qwen/Qwen2.5-32B-Instruct" name="Qwen2.5-32B-Instruct" title="✨ 通义千问" />
<ModelItem id="yi-lightning" name="yi-lightning" title="⭐ 零一万物的霸榜 SOTA 模型" />
<ModelItem id="THUDM/glm-4-9b-chat" name="glm-4-9b-chat" title="✨ 智谱 AI" />
Expand Down

1 comment on commit 15178d0

@vercel
Copy link

@vercel vercel bot commented on 15178d0 Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.