feat: add deepseek provider and corresponding icons

This commit is contained in:
DIYgod 2025-10-09 17:29:14 +08:00
parent 53298c88a2
commit a24ea86093
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View File

@ -15,12 +15,13 @@ interface AIModelIndicatorProps {
onModelChange?: (model: string) => void
}
type ProviderType = "openai" | "google" | "auto"
type ProviderType = "openai" | "google" | "auto" | "deepseek"
const providerIcons: Record<ProviderType, string> = {
openai: "i-simple-icons-openai",
openai: "i-mgc-openai-original",
google: "i-simple-icons-googlegemini",
auto: "i-simple-icons-folo",
deepseek: "i-mgc-deepseek-original",
}
const AIModelNameMapping = {

View File

@ -0,0 +1 @@
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill="#000" d="M20.572 10.184a4.988 4.988 0 0 0-.43-4.092 5.038 5.038 0 0 0-5.424-2.417 5.054 5.054 0 0 0-8.564 1.81A4.987 4.987 0 0 0 2.823 7.9a5.039 5.039 0 0 0 .619 5.914 4.983 4.983 0 0 0 .426 4.092 5.042 5.042 0 0 0 5.429 2.417A4.988 4.988 0 0 0 13.054 22a5.047 5.047 0 0 0 4.81-3.505 4.992 4.992 0 0 0 3.331-2.417 5.046 5.046 0 0 0-.623-5.894m-7.518 10.507a3.73 3.73 0 0 1-2.397-.867l.118-.067 3.982-2.299a.663.663 0 0 0 .327-.568v-5.614l1.684.974a.06.06 0 0 1 .031.043v4.653a3.753 3.753 0 0 1-3.745 3.745m-8.05-3.438a3.726 3.726 0 0 1-.446-2.511l.118.07 3.986 2.3a.642.642 0 0 0 .65 0l4.87-2.808v1.944a.068.068 0 0 1-.028.051l-4.033 2.326a3.75 3.75 0 0 1-5.118-1.372M3.953 8.58a3.738 3.738 0 0 1 1.972-1.644v4.73a.639.639 0 0 0 .323.564l4.845 2.796-1.683.973a.062.062 0 0 1-.06 0l-4.025-2.322A3.753 3.753 0 0 1 3.954 8.56zm13.83 3.213-4.86-2.823 1.68-.97a.063.063 0 0 1 .058 0l4.026 2.326a3.746 3.746 0 0 1-.564 6.754v-4.731a.658.658 0 0 0-.34-.556m1.676-2.52-.118-.07-3.978-2.319a.646.646 0 0 0-.654 0L9.845 9.691V7.748a.055.055 0 0 1 .023-.051l4.025-2.323a3.75 3.75 0 0 1 5.567 3.884zM8.926 12.72l-1.683-.97a.067.067 0 0 1-.032-.047v-4.64a3.75 3.75 0 0 1 6.146-2.878l-.118.067-3.982 2.298a.662.662 0 0 0-.327.568zm.915-1.971 2.168-1.25 2.172 1.25v2.5l-2.164 1.25-2.172-1.25z"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB