mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
feat(model-connections): add provider-specific connection forms and shared components
This commit is contained in:
parent
ced1bb85ed
commit
356f0e56c5
15 changed files with 1423 additions and 574 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
import { Bot, Check, ChevronDown, ImageOff, Search, Settings2, Zap } from "lucide-react";
|
||||
import { Check, ChevronDown, Cpu, ImageOff, Search, Settings2, Zap } from "lucide-react";
|
||||
import { useMemo, useState } from "react";
|
||||
import { updateModelRolesMutationAtom } from "@/atoms/model-connections/model-connections-mutation.atoms";
|
||||
import {
|
||||
|
|
@ -222,7 +222,7 @@ export function ModelSelector({
|
|||
{selected ? (
|
||||
getProviderIcon(selected.provider, { className: "size-4" })
|
||||
) : (
|
||||
<Bot className="h-4 w-4" />
|
||||
<Cpu className="h-4 w-4" />
|
||||
)}
|
||||
<span className="max-w-[180px] truncate text-sm">
|
||||
{selected ? modelName(selected) : "Auto"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue