mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-13 04:29:50 +08:00
### v1.1.0 - #### Added - 新增 AI 笔记风格选择 - 新增 AI 笔记返回格式选择 - 添加 AI 自定义笔记备注 Prompt - 添加任务失败重试 - 添加全局设置页,可在设置页进行模型设置 - #### Optimize - 优化前端样式,优化用户体验 - 增加生成中间产物,可用于失败后加快生成速度 - #### Fix - 修复视频截图视频过早删除错误
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import ProviderCard from '@/components/Form/modelForm/components/providerCard.tsx'
|
|
import { Button } from '@/components/ui/button.tsx'
|
|
import { useProviderStore } from '@/store/providerStore'
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
const Provider = () => {
|
|
const providers = useProviderStore(state => state.provider)
|
|
const navigate = useNavigate()
|
|
const handleClick = () => {
|
|
navigate(`/settings/model/new`)
|
|
}
|
|
|
|
return (
|
|
<div className="flex flex-col gap-2">
|
|
<div className={'search flex gap-1 py-1.5'}>
|
|
<Button
|
|
type={'button'}
|
|
onClick={() => {
|
|
handleClick()
|
|
}}
|
|
className="w-full"
|
|
>
|
|
添加模型供应商
|
|
</Button>
|
|
</div>
|
|
<div className="text-sm font-light">模型供应商列表</div>
|
|
<div>
|
|
{providers &&
|
|
providers.map((provider, index) => {
|
|
return (
|
|
<ProviderCard
|
|
key={index}
|
|
providerName={provider.name}
|
|
Icon={provider.logo}
|
|
id={provider.id}
|
|
enable={provider.enabled}
|
|
/>
|
|
)
|
|
})}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
export default Provider
|