Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
60e0bbd7
Unverified
Commit
60e0bbd7
authored
Sep 18, 2023
by
zxhlyh
Committed by
GitHub
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat/provider add zhipuai (#1192)
Co-authored-by:
Joel
<
iamjoel007@gmail.com
>
parent
827c97f0
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
466 additions
and
55 deletions
+466
-55
Apps.tsx
web/app/(commonLayout)/apps/Apps.tsx
+3
-43
index.tsx
web/app/components/app/configuration/config-model/index.tsx
+1
-1
param-item.tsx
.../components/app/configuration/config-model/param-item.tsx
+38
-7
zhipuai-text-cn.svg
...mponents/base/icons/assets/public/llm/zhipuai-text-cn.svg
+8
-0
zhipuai-text.svg
.../components/base/icons/assets/public/llm/zhipuai-text.svg
+6
-0
zhipuai.svg
web/app/components/base/icons/assets/public/llm/zhipuai.svg
+8
-0
Zhipuai.json
web/app/components/base/icons/src/public/llm/Zhipuai.json
+53
-0
Zhipuai.tsx
web/app/components/base/icons/src/public/llm/Zhipuai.tsx
+16
-0
ZhipuaiText.json
...app/components/base/icons/src/public/llm/ZhipuaiText.json
+44
-0
ZhipuaiText.tsx
web/app/components/base/icons/src/public/llm/ZhipuaiText.tsx
+16
-0
ZhipuaiTextCn.json
...p/components/base/icons/src/public/llm/ZhipuaiTextCn.json
+62
-0
ZhipuaiTextCn.tsx
...pp/components/base/icons/src/public/llm/ZhipuaiTextCn.tsx
+16
-0
index.ts
web/app/components/base/icons/src/public/llm/index.ts
+3
-0
index.ts
...onents/header/account-setting/model-page/configs/index.ts
+2
-0
zhipuai.tsx
...nts/header/account-setting/model-page/configs/zhipuai.tsx
+55
-0
declarations.ts
...ponents/header/account-setting/model-page/declarations.ts
+1
-0
index.tsx
...pp/components/header/account-setting/model-page/index.tsx
+4
-2
FreeQuota.tsx
...eader/account-setting/model-page/model-item/FreeQuota.tsx
+4
-0
Setting.tsx
.../header/account-setting/model-page/model-item/Setting.tsx
+1
-1
use-pay.tsx
web/hooks/use-pay.tsx
+124
-0
common.ts
web/service/common.ts
+1
-1
No files found.
web/app/(commonLayout)/apps/Apps.tsx
View file @
60e0bbd7
'use client'
import
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
'react'
import
{
useRouter
}
from
'next/navigation'
import
{
useEffect
,
useRef
}
from
'react'
import
useSWRInfinite
from
'swr/infinite'
import
{
useTranslation
}
from
'react-i18next'
import
AppCard
from
'./AppCard'
...
...
@@ -10,11 +9,7 @@ import type { AppListResponse } from '@/models/app'
import
{
fetchAppList
}
from
'@/service/apps'
import
{
useAppContext
}
from
'@/context/app-context'
import
{
NEED_REFRESH_APP_LIST_KEY
}
from
'@/config'
import
Confirm
from
'@/app/components/base/confirm/common'
import
{
useAnthropicCheckPay
,
useSparkCheckQuota
,
}
from
'@/hooks/use-pay'
import
{
CheckModal
}
from
'@/hooks/use-pay'
const
getKey
=
(
pageIndex
:
number
,
previousPageData
:
AppListResponse
)
=>
{
if
(
!
pageIndex
||
previousPageData
.
has_more
)
...
...
@@ -27,15 +22,6 @@ const Apps = () => {
const
{
isCurrentWorkspaceManager
}
=
useAppContext
()
const
{
data
,
isLoading
,
setSize
,
mutate
}
=
useSWRInfinite
(
getKey
,
fetchAppList
,
{
revalidateFirstPage
:
false
})
const
anchorRef
=
useRef
<
HTMLDivElement
>
(
null
)
const
router
=
useRouter
()
const
[
showPayStatusModal
,
setShowPayStatusModal
]
=
useState
(
true
)
const
anthropicConfirmInfo
=
useAnthropicCheckPay
()
const
sparkConfirmInfo
=
useSparkCheckQuota
()
const
handleCancelShowPayStatusModal
=
useCallback
(()
=>
{
setShowPayStatusModal
(
false
)
router
.
replace
(
'/'
,
{
forceOptimisticNavigation
:
false
})
},
[
router
])
useEffect
(()
=>
{
document
.
title
=
`
${
t
(
'app.title'
)}
- Dify`
...
...
@@ -64,33 +50,7 @@ const Apps = () => {
{
data
?.
map
(({
data
:
apps
})
=>
apps
.
map
(
app
=>
(
<
AppCard
key=
{
app
.
id
}
app=
{
app
}
onRefresh=
{
mutate
}
/>
)))
}
{
showPayStatusModal
&&
anthropicConfirmInfo
&&
(
<
Confirm
isShow
onCancel=
{
handleCancelShowPayStatusModal
}
onConfirm=
{
handleCancelShowPayStatusModal
}
type=
{
anthropicConfirmInfo
.
type
}
title=
{
anthropicConfirmInfo
.
title
}
showOperateCancel=
{
false
}
confirmText=
{
(
anthropicConfirmInfo
.
type
===
'danger'
&&
t
(
'common.operation.ok'
))
||
''
}
/>
)
}
{
showPayStatusModal
&&
sparkConfirmInfo
&&
(
<
Confirm
isShow
onCancel=
{
handleCancelShowPayStatusModal
}
onConfirm=
{
handleCancelShowPayStatusModal
}
type=
{
sparkConfirmInfo
.
type
}
title=
{
sparkConfirmInfo
.
title
}
desc=
{
sparkConfirmInfo
.
desc
}
showOperateCancel=
{
false
}
confirmText=
{
(
sparkConfirmInfo
.
type
===
'danger'
&&
t
(
'common.operation.ok'
))
||
''
}
/>
)
}
<
CheckModal
/>
</
nav
>
<
div
ref=
{
anchorRef
}
className=
'h-0'
>
</
div
>
</>
...
...
web/app/components/app/configuration/config-model/index.tsx
View file @
60e0bbd7
...
...
@@ -213,7 +213,7 @@ const ConfigModel: FC<IConfigModelProps> = ({
const
handleParamChange
=
(
key
:
string
,
value
:
number
)
=>
{
const
currParamsRule
=
getAllParams
()[
provider
]?.[
modelId
]
let
notOutRangeValue
=
parseFloat
(
value
.
toFixed
(
2
))
let
notOutRangeValue
=
parseFloat
(
(
value
||
0
)
.
toFixed
(
2
))
notOutRangeValue
=
Math
.
max
(
currParamsRule
[
key
].
min
,
notOutRangeValue
)
notOutRangeValue
=
Math
.
min
(
currParamsRule
[
key
].
max
,
notOutRangeValue
)
...
...
web/app/components/app/configuration/config-model/param-item.tsx
View file @
60e0bbd7
'use client'
import
type
{
FC
}
from
'react'
import
React
from
'react'
import
React
,
{
useEffect
}
from
'react'
import
Tooltip
from
'@/app/components/base/tooltip'
import
Slider
from
'@/app/components/base/slider'
export
const
getFitPrecisionValue
=
(
num
:
number
,
precision
:
number
|
null
)
=>
{
if
(
!
precision
||
!
(
`
${
num
}
`
).
includes
(
'.'
))
return
num
const
currNumPrecision
=
(
`
${
num
}
`
).
split
(
'.'
)[
1
].
length
if
(
currNumPrecision
>
precision
)
return
parseFloat
(
num
.
toFixed
(
precision
))
return
num
}
export
type
IParamIteProps
=
{
id
:
string
name
:
string
...
...
@@ -12,10 +23,26 @@ export type IParamIteProps = {
step
?:
number
min
?:
number
max
:
number
precision
:
number
|
null
onChange
:
(
key
:
string
,
value
:
number
)
=>
void
}
const
ParamIte
:
FC
<
IParamIteProps
>
=
({
id
,
name
,
tip
,
step
=
0.1
,
min
=
0
,
max
,
value
,
onChange
})
=>
{
const
TIMES_TEMPLATE
=
'1000000000000'
const
ParamItem
:
FC
<
IParamIteProps
>
=
({
id
,
name
,
tip
,
step
=
0.1
,
min
=
0
,
max
,
precision
,
value
,
onChange
})
=>
{
const
getToIntTimes
=
(
num
:
number
)
=>
{
if
(
precision
)
return
parseInt
(
TIMES_TEMPLATE
.
slice
(
0
,
precision
+
1
),
10
)
if
(
num
<
5
)
return
10
return
1
}
const
times
=
getToIntTimes
(
max
)
useEffect
(()
=>
{
if
(
precision
)
onChange
(
id
,
getFitPrecisionValue
(
value
,
precision
))
},
[
value
,
precision
])
return
(
<
div
className=
"flex items-center justify-between"
>
<
div
className=
"flex items-center"
>
...
...
@@ -29,17 +56,21 @@ const ParamIte: FC<IParamIteProps> = ({ id, name, tip, step = 0.1, min = 0, max,
</
div
>
<
div
className=
"flex items-center"
>
<
div
className=
"mr-4 w-[120px]"
>
<
Slider
value=
{
max
<
5
?
value
*
10
:
value
}
min=
{
min
<
0
?
min
*
10
:
min
}
max=
{
max
<
5
?
max
*
10
:
max
}
onChange=
{
value
=>
onChange
(
id
,
value
/
(
max
<
5
?
10
:
1
))
}
/>
<
Slider
value=
{
value
*
times
}
min=
{
min
*
times
}
max=
{
max
*
times
}
onChange=
{
(
value
)
=>
{
onChange
(
id
,
value
/
times
)
}
}
/>
</
div
>
<
input
type=
"number"
min=
{
min
}
max=
{
max
}
step=
{
step
}
className=
"block w-[64px] h-9 leading-9 rounded-lg border-0 pl-1 pl py-1.5 bg-gray-50 text-gray-900 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-primary-600"
value=
{
value
}
onChange=
{
(
e
)
=>
{
const
value
=
parseFloat
(
e
.
target
.
value
)
if
(
value
<
min
||
value
>
max
)
retur
n
let
value
=
getFitPrecisionValue
(
isNaN
(
parseFloat
(
e
.
target
.
value
))
?
min
:
parseFloat
(
e
.
target
.
value
),
precision
)
if
(
value
<
min
)
value
=
mi
n
if
(
value
>
max
)
value
=
max
onChange
(
id
,
value
)
}
}
/>
</
div
>
</
div
>
)
}
export
default
React
.
memo
(
ParamIte
)
export
default
React
.
memo
(
ParamIte
m
)
web/app/components/base/icons/assets/public/llm/zhipuai-text-cn.svg
0 → 100644
View file @
60e0bbd7
<svg
width=
"86"
height=
"32"
viewBox=
"0 0 86 32"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"shape"
>
<path
d=
"M85.3919 8.94111H83.2742V22.4705H85.3919V8.94111ZM76.9919 8.94111L74.8272 22.4705H76.7801L77.0154 20.9411L77.133 20.2117C77.1566 20.0705 77.3448 19.9529 77.5566 19.9529H79.3919C79.6036 19.9529 79.7919 20.0705 79.8154 20.2117L79.933 20.9411L80.1683 22.4705H82.3095L80.1213 8.94111H76.9919ZM79.2742 18.3529H77.6507C77.533 18.3529 77.4389 18.2352 77.4389 18.1176L78.1683 12.2117C78.1919 12.047 78.3095 11.9293 78.4507 11.9293C78.5919 11.9293 78.7095 12.047 78.733 12.2117L79.4625 18.1176C79.486 18.2588 79.3919 18.3529 79.2742 18.3529ZM15.2742 31.3176C15.086 31.3176 14.9448 31.4588 14.9448 31.647C14.9448 31.8352 15.086 31.9764 15.2742 31.9764C15.4624 31.9764 15.6036 31.8352 15.6036 31.647C15.6036 31.4588 15.4624 31.3176 15.2742 31.3176ZM19.133 11.6705C19.7321 11.6705 20.3067 11.4325 20.7303 11.0089C21.1539 10.5853 21.3919 10.0108 21.3919 9.4117C21.3919 8.81262 21.1539 8.23808 20.7303 7.81447C20.3067 7.39086 19.7321 7.15288 19.133 7.15288C18.534 7.15288 17.9594 7.39086 17.5358 7.81447C17.1122 8.23808 16.8742 8.81262 16.8742 9.4117C16.8742 10.0108 17.1122 10.5853 17.5358 11.0089C17.9594 11.4325 18.534 11.6705 19.133 11.6705ZM24.5601 17.6752C24.7699 17.4655 24.9363 17.2165 25.0498 16.9424C25.1633 16.6683 25.2218 16.3746 25.2218 16.0779C25.2218 15.7813 25.1633 15.4875 25.0498 15.2135C24.9363 14.9394 24.7699 14.6904 24.5601 14.4806C24.1365 14.057 23.5619 13.8191 22.9628 13.8191C22.3638 13.8191 21.7892 14.0571 21.3656 14.4808C20.942 14.9044 20.7041 15.4789 20.7041 16.078C20.7041 16.6771 20.9421 17.2516 21.3657 17.6752C21.5755 17.885 21.8245 18.0514 22.0985 18.165C22.3726 18.2785 22.6663 18.337 22.9629 18.337C23.2596 18.337 23.5533 18.2785 23.8273 18.165C24.1014 18.0514 24.3504 17.885 24.5601 17.6752ZM9.69233 16.9369C9.9216 16.3834 9.9216 15.7614 9.69232 15.2079C9.46304 14.6544 9.02327 14.2146 8.46974 13.9853C7.91622 13.7561 7.29429 13.7561 6.74077 13.9854C6.18725 14.2146 5.74749 14.6544 5.51821 15.2079C5.28894 15.7615 5.28895 16.3834 5.51823 16.9369C5.74751 17.4904 6.18728 17.9302 6.7408 18.1595C7.01488 18.273 7.30863 18.3314 7.60529 18.3314C7.90195 18.3314 8.1957 18.273 8.46977 18.1595C9.02329 17.9302 9.46306 17.4904 9.69233 16.9369ZM24.9683 11.8823C25.1506 11.8823 25.3312 11.8464 25.4996 11.7766C25.668 11.7069 25.8211 11.6046 25.95 11.4757C26.0789 11.3468 26.1811 11.1937 26.2509 11.0253C26.3207 10.8569 26.3566 10.6764 26.3566 10.4941C26.3566 10.3117 26.3207 10.1312 26.2509 9.9628C26.1811 9.79437 26.0789 9.64133 25.95 9.51242C25.8211 9.38351 25.668 9.28126 25.4996 9.21149C25.3312 9.14173 25.1506 9.10582 24.9683 9.10582C24.6001 9.10582 24.247 9.25208 23.9867 9.51242C23.7264 9.77277 23.5801 10.1259 23.5801 10.4941C23.5801 10.8622 23.7264 11.2153 23.9867 11.4757C24.247 11.736 24.6001 11.8823 24.9683 11.8823ZM15.5904 6.24605C15.77 6.20622 15.9398 6.13112 16.0901 6.02511C16.2403 5.9191 16.368 5.78429 16.4658 5.62851C16.5635 5.47273 16.6293 5.29909 16.6593 5.11766C16.6894 4.93624 16.6831 4.75065 16.6408 4.57168C16.5986 4.39271 16.5212 4.22392 16.4131 4.07512C16.3051 3.92631 16.1685 3.80046 16.0114 3.70486C15.8543 3.60926 15.6798 3.54583 15.498 3.51824C15.3162 3.49066 15.1307 3.49947 14.9523 3.54417C14.5984 3.63287 14.2936 3.85737 14.1039 4.1691C13.9142 4.48083 13.8548 4.85472 13.9387 5.20986C14.0226 5.565 14.2429 5.87284 14.552 6.06676C14.8612 6.26068 15.2342 6.32509 15.5904 6.24605ZM5.60362 11.8823C5.78593 11.8823 5.96645 11.8464 6.13488 11.7766C6.30331 11.7069 6.45635 11.6046 6.58526 11.4757C6.71417 11.3468 6.81642 11.1937 6.88619 11.0253C6.95595 10.8569 6.99186 10.6764 6.99186 10.4941C6.99186 10.3117 6.95595 10.1312 6.88619 9.9628C6.81642 9.79437 6.71417 9.64133 6.58526 9.51242C6.45635 9.38351 6.30331 9.28126 6.13488 9.21149C5.96645 9.14173 5.78593 9.10582 5.60362 9.10582C5.23544 9.10582 4.88234 9.25208 4.62199 9.51242C4.36165 9.77277 4.21539 10.1259 4.21539 10.4941C4.21539 10.8622 4.36165 11.2153 4.62199 11.4757C4.88234 11.736 5.23544 11.8823 5.60362 11.8823ZM6.58904 22.6493C6.71795 22.5204 6.82021 22.3674 6.88997 22.199C6.95974 22.0305 6.99565 21.85 6.99565 21.6677C6.99565 21.4854 6.95974 21.3049 6.88997 21.1364C6.82021 20.968 6.71795 20.815 6.58904 20.6861C6.46012 20.5571 6.30708 20.4549 6.13865 20.3851C5.97022 20.3154 5.7897 20.2794 5.60739 20.2794C5.42508 20.2794 5.24456 20.3154 5.07613 20.3851C4.90769 20.4549 4.75465 20.5571 4.62574 20.6861C4.36539 20.9464 4.21913 21.2995 4.21913 21.6677C4.21913 22.0359 4.36539 22.389 4.62574 22.6493C4.88609 22.9097 5.2392 23.056 5.60739 23.056C5.97558 23.056 6.32869 22.9097 6.58904 22.6493ZM15.5919 28.5983C15.7693 28.5564 15.9367 28.48 16.0846 28.3734C16.2324 28.2668 16.3579 28.1321 16.4537 27.977C16.5495 27.8219 16.6138 27.6495 16.643 27.4696C16.6722 27.2896 16.6656 27.1057 16.6237 26.9283C16.5818 26.7509 16.5054 26.5835 16.3988 26.4356C16.2922 26.2877 16.1575 26.1623 16.0025 26.0665C15.8474 25.9707 15.675 25.9063 15.495 25.8771C15.3151 25.848 15.1312 25.8545 14.9537 25.8964C14.7742 25.9362 14.6044 26.0113 14.4541 26.1174C14.3039 26.2234 14.1762 26.3582 14.0784 26.514C13.9807 26.6697 13.9149 26.8434 13.8849 27.0248C13.8548 27.2062 13.8611 27.3918 13.9034 27.5708C13.9456 27.7497 14.023 27.9185 14.1311 28.0673C14.2391 28.2162 14.3757 28.342 14.5328 28.4376C14.6898 28.5332 14.8644 28.5966 15.0462 28.6242C15.228 28.6518 15.4135 28.643 15.5919 28.5983ZM25.2848 22.9973C25.4634 22.9566 25.6322 22.881 25.7815 22.7747C25.9307 22.6684 26.0574 22.5337 26.1543 22.3782C26.2512 22.2227 26.3164 22.0496 26.3461 21.8688C26.3758 21.6881 26.3694 21.5032 26.3273 21.3249C26.2853 21.1466 26.2083 20.9784 26.1009 20.83C25.9935 20.6815 25.8578 20.5559 25.7015 20.4601C25.5453 20.3644 25.3717 20.3006 25.1907 20.2723C25.0097 20.244 24.8249 20.2518 24.6469 20.2952C24.291 20.3821 23.9839 20.6062 23.7925 20.9185C23.6011 21.2309 23.541 21.6063 23.6251 21.9628C23.7093 22.3193 23.931 22.6281 24.2419 22.8219C24.5528 23.0157 24.9276 23.0788 25.2848 22.9973ZM22.286 4.82347C22.7566 4.82347 23.133 4.447 23.133 3.97641C23.133 3.50582 22.7566 3.12935 22.286 3.12935C21.8154 3.12935 21.4389 3.50582 21.4389 3.97641C21.4389 4.447 21.8154 4.82347 22.286 4.82347ZM8.28598 4.82347C8.75657 4.82347 9.13304 4.447 9.13304 3.97641C9.13304 3.50582 8.75657 3.12935 8.28598 3.12935C7.81539 3.12935 7.43892 3.50582 7.43892 3.97641C7.43892 4.447 7.81539 4.82347 8.28598 4.82347ZM1.29774 15.2235C0.827154 15.2235 0.450684 15.5999 0.450684 16.0705C0.450684 16.5411 0.827154 16.9176 1.29774 16.9176C1.76833 16.9176 2.1448 16.5411 2.1448 16.0705C2.16833 15.5999 1.76833 15.2235 1.29774 15.2235ZM8.28598 27.3176C7.81539 27.3176 7.43892 27.6941 7.43892 28.1646C7.43892 28.6352 7.81539 29.0117 8.28598 29.0117C8.75657 29.0117 9.13304 28.6352 9.13304 28.1646C9.13304 27.6941 8.75657 27.3176 8.28598 27.3176ZM22.286 27.3411C21.8154 27.3411 21.4389 27.7176 21.4389 28.1882C21.4389 28.6588 21.8154 29.0352 22.286 29.0352C22.7566 29.0352 23.133 28.6588 23.133 28.1882C23.133 27.7176 22.7566 27.3411 22.286 27.3411ZM29.2742 15.2235C28.8036 15.2235 28.4272 15.5999 28.4272 16.0705C28.4272 16.5411 28.8036 16.9176 29.2742 16.9176C29.7448 16.9176 30.1213 16.5411 30.1213 16.0705C30.1213 15.5999 29.7448 15.2235 29.2742 15.2235ZM28.7566 8.6117C28.9448 8.6117 29.086 8.47053 29.086 8.28229C29.086 8.09405 28.9448 7.95288 28.7566 7.95288C28.5683 7.95288 28.4272 8.09405 28.4272 8.28229C28.4272 8.47053 28.5919 8.6117 28.7566 8.6117ZM15.2742 0.846995C15.4624 0.846995 15.6036 0.705819 15.6036 0.517583C15.6036 0.329348 15.4624 0.188171 15.2742 0.188171C15.086 0.188171 14.9448 0.329348 14.9448 0.517583C14.9448 0.705819 15.1095 0.846995 15.2742 0.846995ZM1.81539 8.6117C2.00362 8.6117 2.1448 8.47053 2.1448 8.28229C2.1448 8.09405 2.00362 7.95288 1.81539 7.95288C1.62715 7.95288 1.48598 8.09405 1.48598 8.28229C1.48598 8.47053 1.62715 8.6117 1.81539 8.6117ZM1.81539 23.5293C1.62715 23.5293 1.48598 23.6705 1.48598 23.8588C1.48598 24.047 1.62715 24.1882 1.81539 24.1882C2.00362 24.1882 2.1448 24.047 2.1448 23.8588C2.1448 23.6705 1.9801 23.5293 1.81539 23.5293ZM28.7801 23.5058C28.5919 23.5058 28.4507 23.647 28.4507 23.8352C28.4507 24.0235 28.5919 24.1646 28.7801 24.1646C28.9683 24.1646 29.1095 24.0235 29.1095 23.8352C29.1095 23.6705 28.9683 23.5058 28.7801 23.5058Z"
fill=
"#3859FF"
/>
<path
d=
"M19.8154 20.5882C18.8036 20.2588 17.7683 20.6823 17.2272 21.5293L17.2036 21.5764C16.686 22.447 15.6507 22.9176 14.6389 22.6117C14.0742 22.4235 13.6272 22.047 13.3448 21.5529C13.2977 21.4117 13.2742 21.2705 13.2742 21.1058C13.2272 20.1411 13.9801 19.3176 14.9448 19.2941H15.1801C16.9683 19.3646 18.4507 17.9764 18.5213 16.2117C18.5919 14.4235 17.2036 12.9411 15.4389 12.8705H14.9448C13.9801 12.8235 13.2977 12.0705 13.3448 11.1293C13.3448 10.8941 13.3919 10.6823 13.486 10.4705L13.5095 10.3999C13.5566 10.2823 13.5801 10.2352 13.6272 10.1176C14.0036 8.91758 13.3448 7.67052 12.1448 7.29405C10.9683 6.94111 9.69774 7.57641 9.32127 8.75288C8.9448 9.90582 9.5801 11.1529 10.733 11.5529C10.9213 11.6235 11.0389 11.647 11.2036 11.6705L11.2977 11.6941C12.2154 11.7882 12.9213 12.5176 12.8977 13.4588C12.8742 13.7882 12.7801 14.1176 12.5919 14.3764C12.286 14.847 12.1213 15.3882 12.0977 15.9764C12.0742 16.6588 12.2624 17.3176 12.5919 17.8352C12.7801 18.0941 12.8742 18.3999 12.8977 18.7529C12.9448 19.6941 12.3095 20.4235 11.3919 20.5176H11.3683C11.2272 20.5176 11.086 20.5411 10.9683 20.5646C9.72127 20.847 8.99186 22.0705 9.27421 23.2705C9.55657 24.4941 10.7801 25.2235 11.9566 24.9646C12.5919 24.8235 13.086 24.447 13.3919 23.9529C13.9095 23.0588 14.9919 22.6352 16.0272 22.9646C16.5919 23.1293 16.9683 23.4823 17.2507 23.9293L17.2742 23.9764C17.5095 24.3529 17.9566 24.7529 18.4977 24.9176C19.7213 25.2705 20.9213 24.6117 21.2977 23.4588C21.6742 22.2117 20.9683 20.9646 19.8154 20.5882ZM70.2625 16.2588C70.537 16.2588 70.8004 16.1497 70.9945 15.9555C71.1887 15.7614 71.2977 15.498 71.2977 15.2235C71.2977 14.9489 71.1887 14.6856 70.9945 14.4914C70.8004 14.2972 70.537 14.1882 70.2625 14.1882C69.9879 14.1882 69.7245 14.2972 69.5304 14.4914C69.3362 14.6856 69.2272 14.9489 69.2272 15.2235C69.2272 15.498 69.3362 15.7614 69.5304 15.9555C69.7245 16.1497 69.9879 16.2588 70.2625 16.2588ZM43.8624 15.5293C43.7213 15.4588 43.5095 15.2941 43.2036 15.1058C42.3801 14.5411 41.7448 14.1176 41.3448 13.8117H43.9095V12.5882H41.5095C41.5566 12.4705 41.5566 11.2941 41.5566 10.9646C41.5801 10.6823 41.6036 10.447 41.6036 10.2823H43.5095V9.05876H39.5801C39.7683 8.72935 39.9095 8.37641 40.0272 7.95288L38.7095 7.83523C38.3801 8.89405 37.8154 9.8117 37.0154 10.5882C37.3448 10.9176 37.533 11.1293 37.6036 11.2705C37.7213 11.3882 37.7919 11.5058 37.886 11.5764C38.333 11.1293 38.6624 10.7058 38.9213 10.2823H40.2389C40.2389 10.7764 40.1919 12.1646 40.1213 12.5646H37.133V13.7882H39.8625C39.5095 14.6352 38.5448 15.3882 37.0389 15.9999C37.3213 16.3999 37.6036 16.8235 37.8625 17.2941C38.1448 17.0823 38.4507 16.9176 38.733 16.7999V23.5293H40.1448V22.847H47.0625V23.5293H48.5213V16.7529H43.086L43.8624 15.5293ZM38.8036 16.7293C39.7919 16.1176 40.4272 15.4823 40.7566 14.847C40.8977 14.9176 41.086 15.0823 41.2977 15.2705C42.0507 15.8823 42.6625 16.3764 43.086 16.7293H38.8036ZM47.0625 21.7646H40.1448V20.4235H47.0625V21.7646ZM47.0625 19.3176H40.1448V18.0235H47.0625V19.3176Z"
fill=
"#3859FF"
/>
<path
d=
"M44.4507 15.6941H49.5095V8.94111H44.4507V15.6941ZM45.7683 10.3058H48.2154V14.4235H45.7683V10.3058ZM54.4742 11.3882L55.7213 10.5411C55.0389 9.55288 54.4507 8.79994 53.9801 8.2117L52.8977 8.94111C53.0389 9.17641 53.2507 9.52935 53.5566 9.97641C54.0036 10.6352 54.3095 11.1058 54.4742 11.3882ZM64.0272 13.9764C64.1448 13.8588 64.286 13.647 64.4742 13.3646C64.8742 12.847 65.1566 12.447 65.2977 12.2117L64.3095 11.5293C64.0977 11.9058 63.6742 12.4705 63.0625 13.247L64.0272 13.9764ZM58.4507 13.247C58.3095 13.0352 58.0977 12.7529 57.7919 12.3999C57.5095 11.9999 57.2742 11.7176 57.133 11.5529L56.2154 12.2352C56.7566 12.9646 57.1801 13.5529 57.4624 13.9999L58.4507 13.247ZM55.2977 20.2823C55.1801 20.3999 55.1095 20.4941 55.086 20.5176V13.9293H52.5213V15.4588H53.6742V20.8941C53.6742 21.4352 53.5566 21.8117 53.2977 22.047L54.1683 23.3882C54.686 22.7058 55.4624 21.8823 56.4977 20.9411C56.3801 20.2117 56.3095 19.647 56.2154 19.2235C56.0507 19.4823 55.7448 19.8352 55.2977 20.2823ZM54.1683 23.4117V23.3882L54.1448 23.4117H54.1683ZM57.0389 23.5764H58.4036V22.9646H63.0389V23.5764H64.4507V17.0352H57.0389V23.5764ZM58.4036 18.2588H63.0389V19.5529H58.4036V18.2588ZM58.4036 20.5882H63.0389V21.8117H58.4036V20.5882Z"
fill=
"#3859FF"
/>
<path
d=
"M65.3213 10.7999V9.647H62.9213C63.2742 9.08229 63.5095 8.72935 63.5801 8.6117C63.6977 8.39994 63.7683 8.25876 63.8625 8.18817L62.4977 7.88229C62.1683 8.49405 61.8154 9.08229 61.4154 9.647H60.0977C59.9566 9.4117 59.7213 9.03523 59.3919 8.54111C59.2036 8.25876 59.0625 8.02347 58.9448 7.85876L57.6272 8.16464C57.8154 8.39994 58.1213 8.89405 58.5448 9.62347H56.2625V10.7764H58.8272V14.7764H55.7683V15.9293H65.6742V14.7764H62.5213V10.7999H65.3213ZM61.3448 14.7764H60.0977V10.7764H61.3448V14.7764Z"
fill=
"#3859FF"
/>
</g>
</svg>
web/app/components/base/icons/assets/public/llm/zhipuai-text.svg
0 → 100644
View file @
60e0bbd7
<svg
width=
"89"
height=
"32"
viewBox=
"0 0 89 32"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"shape"
>
<path
d=
"M88.8045 8.82998H86.7123V22.4497H88.8045V8.82998ZM80.5485 8.82998L78.4158 22.4497H80.3339L80.5589 20.9156L80.6709 20.1853C80.6916 20.0394 80.8751 19.9142 81.0793 19.9142H82.8855C83.0897 19.9142 83.2732 20.029 83.2939 20.1853L83.4059 20.9156L83.6299 22.4497H85.7429L83.6102 8.82998H80.5485ZM82.7838 18.2963H81.181C81.1522 18.2968 81.1237 18.2909 81.0975 18.279C81.0713 18.2671 81.0481 18.2495 81.0295 18.2275C81.0109 18.2056 80.9975 18.1797 80.9902 18.1519C80.9828 18.1241 80.9818 18.095 80.9871 18.0667L81.7024 12.1175C81.7212 11.95 81.8436 11.8352 81.9772 11.8352C82.109 11.8352 82.2426 11.95 82.253 12.1175L82.9673 18.0657C82.9767 18.1919 82.8855 18.2963 82.7735 18.2963H82.7838ZM14.8563 31.3316C14.7706 31.3519 14.6961 31.4046 14.6485 31.4787C14.6009 31.5528 14.584 31.6425 14.6012 31.7288C14.6417 31.9057 14.8158 32.0309 14.989 31.9895C15.0746 31.9695 15.1491 31.9169 15.1967 31.843C15.2443 31.769 15.2613 31.6795 15.244 31.5933C15.2036 31.4154 15.0295 31.2902 14.8563 31.3316ZM19.6337 11.3693C20.7471 10.8544 21.2412 9.51233 20.7368 8.37257C20.2323 7.23374 18.9203 6.72739 17.8059 7.24316C16.6925 7.75986 16.1975 9.10198 16.7019 10.2408C17.2064 11.3806 18.5184 11.885 19.6337 11.3693ZM23.1245 18.1712C24.2963 17.8107 24.9598 16.5476 24.6078 15.3504C24.2549 14.1523 23.02 13.4737 21.8483 13.8342C20.6775 14.1947 20.013 15.4577 20.3659 16.6559C20.7189 17.853 21.9537 18.5316 23.1245 18.1712ZM5.89628 14.2982C5.45885 14.7037 5.19533 15.2628 5.16094 15.8583C5.12655 16.4537 5.32396 17.0394 5.71181 17.4926C5.90262 17.7129 6.13553 17.8928 6.39686 18.0219C6.6582 18.1509 6.94268 18.2264 7.23361 18.2439C7.52453 18.2615 7.81602 18.2207 8.09096 18.124C8.36591 18.0273 8.61875 17.8766 8.83463 17.6808C9.27207 17.2753 9.53559 16.7162 9.56998 16.1208C9.60437 15.5253 9.40695 14.9396 9.0191 14.4864C8.8283 14.2661 8.59539 14.0862 8.33405 13.9571C8.07272 13.8281 7.78823 13.7526 7.49731 13.7351C7.20639 13.7175 6.91489 13.7583 6.63995 13.855C6.36501 13.9517 6.11217 14.1024 5.89628 14.2982ZM25.3579 11.4182C25.9189 10.9062 25.9697 10.0196 25.4699 9.44551C25.3521 9.30917 25.2082 9.19782 25.0467 9.11802C24.8852 9.03822 24.7093 8.99159 24.5295 8.98088C24.3496 8.97018 24.1694 8.99562 23.9996 9.0557C23.8297 9.11578 23.6736 9.20928 23.5405 9.33068C23.27 9.581 23.1072 9.92649 23.0863 10.2944C23.0654 10.6624 23.1881 11.0241 23.4285 11.3034C23.9292 11.8775 24.796 11.9293 25.3579 11.4182ZM14.9278 6.15798C15.6826 6.15798 16.2953 5.53116 16.2953 4.75939C16.2953 3.98763 15.6836 3.3608 14.9278 3.3608C14.172 3.3608 13.5603 3.98669 13.5603 4.75939C13.5603 5.53116 14.172 6.15798 14.9278 6.15798ZM5.40687 11.773C6.16169 11.773 6.77346 11.1472 6.77346 10.3744C6.77346 9.60268 6.16169 8.97586 5.40593 8.97586C4.65111 8.97586 4.0384 9.60174 4.0384 10.3744C4.0384 11.1462 4.65111 11.773 5.40687 11.773ZM4.48734 20.5815C4.21673 20.8317 4.05374 21.1771 4.03268 21.5451C4.01161 21.913 4.13411 22.2748 4.3744 22.5542C4.87511 23.1283 5.74287 23.181 6.30381 22.669C6.86569 22.158 6.91558 21.2704 6.41675 20.6963C6.29897 20.56 6.15507 20.4486 5.99354 20.3688C5.83201 20.289 5.65613 20.2424 5.47628 20.2317C5.29643 20.221 5.11626 20.2464 4.94641 20.3065C4.77656 20.3666 4.62046 20.4601 4.48734 20.5815ZM14.9278 28.6493C15.6826 28.6493 16.2953 28.0234 16.2953 27.2507C16.2953 26.4789 15.6836 25.8521 14.9278 25.8521C14.172 25.8521 13.5603 26.4789 13.5603 27.2507C13.5603 28.0234 14.172 28.6493 14.9278 28.6493ZM24.4591 23.0135C25.2149 23.0135 25.8266 22.3876 25.8266 21.6149C25.8266 20.8432 25.2149 20.2163 24.4591 20.2163C23.7043 20.2163 23.0916 20.8422 23.0916 21.6149C23.0916 22.3867 23.7033 23.0135 24.4591 23.0135ZM21.7645 4.68692C21.8768 4.69378 21.9894 4.67794 22.0955 4.64035C22.2015 4.60275 22.2989 4.54416 22.3819 4.46809C22.4648 4.39202 22.5315 4.30001 22.5781 4.19757C22.6247 4.09514 22.6502 3.98436 22.653 3.87186C22.6618 3.75964 22.6481 3.64679 22.6126 3.53995C22.5771 3.43312 22.5206 3.33448 22.4464 3.24983C22.3722 3.16518 22.2818 3.09625 22.1805 3.0471C22.0793 2.99794 21.9692 2.96956 21.8568 2.96363C21.7446 2.9569 21.6322 2.9728 21.5263 3.0104C21.4204 3.048 21.3232 3.10652 21.2404 3.18248C21.1575 3.25845 21.0909 3.35029 21.0443 3.45256C20.9977 3.55482 20.9722 3.66541 20.9692 3.77774C20.9604 3.88997 20.9741 4.00282 21.0096 4.10965C21.0451 4.21648 21.1016 4.31513 21.1758 4.39978C21.25 4.48442 21.3404 4.55335 21.4417 4.60251C21.543 4.65166 21.6521 4.68099 21.7645 4.68692ZM7.5904 4.5401C7.68271 4.60167 7.78644 4.6441 7.89544 4.66485C8.00445 4.68561 8.11651 4.68427 8.22499 4.66093C8.33347 4.63758 8.43616 4.5927 8.52697 4.52894C8.61779 4.46518 8.69489 4.38384 8.75369 4.28974C8.8757 4.09858 8.91838 3.8674 8.87269 3.64527C8.827 3.42315 8.69653 3.22758 8.50899 3.1001C8.41664 3.03837 8.31284 2.99582 8.20374 2.97499C8.09464 2.95415 7.98246 2.95544 7.87387 2.9788C7.76528 3.00215 7.66248 3.04708 7.57159 3.11092C7.4807 3.17477 7.40356 3.25622 7.34475 3.35045C7.22275 3.54161 7.18006 3.7728 7.22575 3.99492C7.27144 4.21704 7.40285 4.41261 7.5904 4.5401ZM0.803576 15.2281C0.384753 15.4361 0.221929 15.9584 0.426164 16.3857C0.474224 16.4863 0.541877 16.5762 0.625154 16.6502C0.708432 16.7242 0.805655 16.7809 0.911121 16.8168C1.01659 16.8528 1.12817 16.8673 1.23932 16.8595C1.35047 16.8518 1.45895 16.8219 1.5584 16.7716C1.97722 16.5636 2.14005 16.0413 1.93581 15.614C1.88775 15.5136 1.82013 15.4238 1.73693 15.3498C1.65372 15.2759 1.55659 15.2193 1.45124 15.1833C1.34588 15.1474 1.23442 15.1329 1.12337 15.1405C1.01232 15.1482 0.902978 15.178 0.803576 15.2281ZM8.10052 27.3241C7.98827 27.3172 7.87579 27.333 7.76979 27.3706C7.66378 27.4081 7.56642 27.4666 7.48351 27.5426C7.40059 27.6186 7.33383 27.7105 7.28719 27.8128C7.24055 27.9151 7.215 28.0258 7.21205 28.1382C7.20322 28.2504 7.21695 28.3633 7.25243 28.4701C7.28791 28.577 7.34442 28.6756 7.41863 28.7602C7.49284 28.8449 7.58324 28.9138 7.68451 28.963C7.78578 29.0121 7.89587 29.0405 8.00828 29.0464C8.12045 29.0532 8.23283 29.0373 8.33873 28.9997C8.44462 28.9621 8.54187 28.9035 8.62468 28.8276C8.70749 28.7516 8.77417 28.6598 8.82075 28.5575C8.86733 28.4553 8.89286 28.3447 8.89581 28.2323C8.90464 28.1202 8.89094 28.0074 8.85551 27.9006C8.82009 27.7939 8.76367 27.6953 8.68956 27.6106C8.61545 27.526 8.52515 27.457 8.42399 27.4078C8.32283 27.3586 8.21285 27.3301 8.10052 27.3241ZM22.2756 27.47C22.1832 27.4085 22.0795 27.3662 21.9705 27.3455C21.8615 27.3248 21.7495 27.3262 21.6411 27.3495C21.5326 27.3729 21.43 27.4177 21.3391 27.4814C21.2483 27.5451 21.1712 27.6263 21.1123 27.7203C20.99 27.9116 20.9471 28.143 20.9928 28.3653C21.0385 28.5877 21.1692 28.7834 21.357 28.9109C21.4494 28.9725 21.5531 29.0148 21.6622 29.0355C21.7712 29.0562 21.8833 29.0548 21.9918 29.0313C22.1003 29.0079 22.2029 28.9629 22.2937 28.8991C22.3845 28.8352 22.4615 28.7538 22.5203 28.6596C22.6423 28.4685 22.685 28.2373 22.6393 28.0152C22.5936 27.793 22.4631 27.5975 22.2756 27.47ZM29.1433 15.2799C29.051 15.2184 28.9473 15.1761 28.8383 15.1554C28.7293 15.1347 28.6173 15.1361 28.5088 15.1594C28.4004 15.1828 28.2977 15.2276 28.2069 15.2913C28.1161 15.355 28.0389 15.4362 27.98 15.5302C27.858 15.7214 27.8154 15.9526 27.861 16.1747C27.9067 16.3968 28.0372 16.5924 28.2248 16.7199C28.3171 16.7816 28.4209 16.8241 28.53 16.845C28.6391 16.8658 28.7513 16.8645 28.8599 16.8412C28.9685 16.8178 29.0713 16.7729 29.1621 16.709C29.253 16.6452 29.3302 16.5637 29.389 16.4695C29.511 16.2783 29.5537 16.0472 29.508 15.825C29.4623 15.6029 29.3309 15.4073 29.1433 15.2799ZM28.4092 8.4121C28.4723 8.35188 28.5104 8.27016 28.516 8.18315C28.5215 8.09614 28.4942 8.01022 28.4393 7.94245C28.382 7.87833 28.3018 7.83918 28.216 7.83338C28.1302 7.82757 28.0455 7.85557 27.98 7.91139C27.917 7.9716 27.8789 8.05333 27.8733 8.14034C27.8677 8.22734 27.8951 8.31326 27.9499 8.38104C28.0073 8.44516 28.0874 8.48431 28.1732 8.49011C28.2591 8.49591 28.3438 8.46791 28.4092 8.4121ZM14.988 0.668097C15.0739 0.648054 15.1486 0.595414 15.1964 0.521299C15.2442 0.447185 15.2613 0.357402 15.244 0.270921C15.2036 0.0939798 15.0295 -0.0311966 14.8563 0.0102151C14.7708 0.0304659 14.6965 0.0830504 14.6489 0.156931C14.6013 0.230811 14.5843 0.320241 14.6012 0.40645C14.6417 0.584333 14.8149 0.709509 14.988 0.668097ZM1.56875 8.48551C1.74193 8.54763 1.9264 8.44315 1.98758 8.27657C2.0149 8.19261 2.00894 8.10137 1.97093 8.02168C1.93293 7.94199 1.86578 7.87994 1.78334 7.84833C1.60922 7.78621 1.42569 7.89068 1.36452 8.05727C1.3372 8.14123 1.34315 8.23247 1.38116 8.31216C1.41916 8.39185 1.48632 8.4539 1.56875 8.48551ZM1.4464 23.5763C1.38294 23.6365 1.3445 23.7183 1.33874 23.8055C1.33299 23.8928 1.36034 23.979 1.41534 24.0469C1.47268 24.111 1.55284 24.1502 1.63866 24.156C1.72449 24.1618 1.80918 24.1338 1.87463 24.078C1.93783 24.0179 1.9761 23.9362 1.98186 23.8492C1.98761 23.7622 1.96042 23.6762 1.90569 23.6083C1.84835 23.5442 1.7682 23.5051 1.68237 23.4993C1.59655 23.4935 1.51185 23.5205 1.4464 23.5763ZM28.2963 23.5039C28.1231 23.4417 27.9396 23.5462 27.8784 23.7128C27.8511 23.7968 27.857 23.888 27.895 23.9677C27.933 24.0474 28.0002 24.1094 28.0826 24.141C28.2558 24.2032 28.4403 24.0987 28.5005 23.9321C28.5279 23.8483 28.5221 23.7571 28.4842 23.6774C28.4464 23.5978 28.3785 23.5356 28.2963 23.5039Z"
fill=
"#3859FF"
/>
<path
d=
"M19.3866 20.5504C18.918 20.3949 18.4104 20.4031 17.947 20.5738C17.4836 20.7444 17.0919 21.0674 16.836 21.4897L16.8153 21.5311C16.3052 22.4186 15.2944 22.8883 14.2949 22.5645C13.7534 22.3884 13.3002 22.011 13.029 21.5104C12.986 21.364 12.9585 21.2135 12.9471 21.0614C12.9066 20.092 13.6313 19.277 14.58 19.2252H14.805C16.5499 19.2977 18.0295 17.9094 18.101 16.1146C18.1725 14.3198 16.8153 12.8167 15.06 12.7433H14.58C13.6313 12.7019 12.9678 11.9499 13.0083 10.9795C13.0083 10.7499 13.0497 10.5203 13.141 10.3217L13.1617 10.2595C13.205 10.1646 13.2427 10.0672 13.2746 9.96778C13.6417 8.76684 12.9885 7.49343 11.8252 7.1179C10.6713 6.75272 9.42616 7.38896 9.04875 8.60025C8.68169 9.76919 9.29345 11.021 10.4266 11.4285C10.6102 11.4906 10.7222 11.5123 10.8963 11.5433H10.9876C11.8864 11.6468 12.5904 12.3885 12.5593 13.3278C12.5499 13.6723 12.437 13.9857 12.2638 14.2464C11.9614 14.7295 11.7925 15.2842 11.7744 15.8539C11.7439 16.5152 11.9146 17.1701 12.2638 17.7325C12.437 17.9932 12.549 18.3066 12.5593 18.6511C12.6007 19.5904 11.988 20.3311 11.0902 20.4252H11.0695C10.9377 20.4252 10.7843 20.4563 10.661 20.477C9.43745 20.7593 8.71275 21.98 8.98757 23.2017C9.26333 24.4327 10.4671 25.1527 11.6106 24.892C11.9023 24.8289 12.1778 24.7064 12.42 24.5321C12.6622 24.3579 12.866 24.1357 13.0186 23.8793C13.2694 23.4422 13.6626 23.1044 14.1324 22.9221C14.6022 22.7399 15.1203 22.7243 15.6003 22.8779C16.1415 23.0548 16.5292 23.389 16.805 23.8586L16.8351 23.9113C17.0704 24.2972 17.5193 24.6944 18.0492 24.8506C19.2539 25.2158 20.4379 24.5475 20.8163 23.3786C21.2031 22.1579 20.5095 20.8939 19.3866 20.5297V20.5504ZM75.0064 14.1005C74.4454 14.1005 73.9862 14.5701 73.9862 15.1443C73.9862 15.7184 74.4454 16.188 75.0064 16.188C75.5673 16.188 76.0266 15.7174 76.0266 15.1433C76.0286 14.87 75.9225 14.607 75.7314 14.4117C75.5403 14.2163 75.2797 14.1045 75.0064 14.1005ZM38.1029 10.7395H41.4506C41.5214 10.7415 41.5886 10.7709 41.6381 10.8214C41.6876 10.872 41.7156 10.9398 41.716 11.0106C41.716 11.0426 41.716 11.084 41.6963 11.1047L37.9203 20.3941V22.2831H43.972V20.3631H40.4407C40.3698 20.3611 40.3025 20.3316 40.2529 20.2809C40.2034 20.2301 40.1756 20.162 40.1753 20.0911C40.1753 20.06 40.1753 20.028 40.196 19.997L43.972 10.7075V8.82049H38.1029V10.7395ZM49.6153 14.3198C49.6149 14.3906 49.5869 14.4584 49.5374 14.509C49.4879 14.5595 49.4207 14.5889 49.3499 14.5908H47.524C47.4887 14.5908 47.4536 14.5838 47.421 14.5701C47.3884 14.5564 47.3588 14.5364 47.334 14.5112C47.3092 14.4859 47.2897 14.456 47.2766 14.4232C47.2635 14.3903 47.2571 14.3552 47.2577 14.3198V8.81861H45.1862V22.2821H47.2577V16.7819C47.2578 16.7127 47.2842 16.6461 47.3315 16.5956C47.3789 16.5451 47.4437 16.5144 47.5127 16.5099H49.3396C49.4826 16.5099 49.5946 16.636 49.5946 16.7819V22.2821H51.6972V8.81861H49.5946V14.3188L49.6153 14.3198ZM55.2887 8.81861H53.2182V22.2831H55.2887V8.81861ZM59.8412 8.81861H56.7899V22.2831H58.8605V17.2214H59.8412C61.9127 17.2214 62.9226 16.0525 62.9226 13.8915V12.1381C62.9226 9.98849 61.9127 8.80825 59.8412 8.80825V8.81861ZM60.8511 14.0271C60.8511 14.9871 60.4934 15.3005 59.8412 15.3005H59.1259C59.0907 15.3002 59.0559 15.293 59.0235 15.2792C58.9911 15.2654 58.9617 15.2454 58.9371 15.2202C58.9125 15.1949 58.8932 15.1651 58.8802 15.1324C58.8672 15.0996 58.8608 15.0646 58.8615 15.0294V11.0106C58.8619 10.9398 58.8899 10.872 58.9394 10.8214C58.9889 10.7709 59.0561 10.7415 59.1269 10.7395H59.8412C60.4944 10.7395 60.8511 11.0426 60.8511 12.013V14.0271ZM67.9946 19.2035C67.9946 20.1635 67.5767 20.509 66.9236 20.509C66.2704 20.509 65.8525 20.1645 65.8525 19.2035V8.81955H63.78V19.069C63.78 21.2186 64.8313 22.4497 66.8624 22.4497C68.8934 22.4497 69.9447 21.2186 69.9447 19.068V8.81861H67.9852V19.2035H67.9946Z"
fill=
"#3859FF"
/>
</g>
</svg>
web/app/components/base/icons/assets/public/llm/zhipuai.svg
0 → 100644
View file @
60e0bbd7
<svg
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"ZHIPU Square"
>
<g
id=
"shape"
>
<path
d=
"M11.8923 23.4987C11.8281 23.5139 11.7722 23.5535 11.7365 23.609C11.7008 23.6646 11.6881 23.7319 11.701 23.7966C11.7314 23.9293 11.862 24.0232 11.9919 23.9921C12.0561 23.9771 12.1119 23.9377 12.1476 23.8823C12.1833 23.8268 12.1961 23.7596 12.1832 23.695C12.1528 23.5616 12.0222 23.4677 11.8923 23.4987ZM15.4754 8.52697C16.3105 8.14085 16.681 7.13426 16.3027 6.27944C15.9243 5.42532 14.9403 5.04556 14.1046 5.43238C13.2695 5.81991 12.8982 6.8265 13.2766 7.68062C13.6549 8.53544 14.6389 8.91379 15.4754 8.52697ZM18.0935 13.6284C18.9723 13.358 19.47 12.4107 19.206 11.5129C18.9413 10.6143 18.0152 10.1053 17.1363 10.3757C16.2582 10.646 15.7599 11.5933 16.0246 12.4919C16.2893 13.3898 17.2154 13.8987 18.0935 13.6284ZM5.17233 10.7237C4.84426 11.0278 4.64662 11.4471 4.62083 11.8937C4.59503 12.3403 4.74309 12.7796 5.03398 13.1194C5.17709 13.2847 5.35177 13.4196 5.54777 13.5164C5.74377 13.6132 5.95713 13.6698 6.17533 13.683C6.39352 13.6961 6.61214 13.6655 6.81835 13.593C7.02455 13.5205 7.21418 13.4075 7.3761 13.2606C7.70417 12.9565 7.90182 12.5372 7.92761 12.0906C7.9534 11.644 7.80534 11.2047 7.51445 10.8649C7.37135 10.6996 7.19666 10.5647 7.00066 10.4679C6.80466 10.3711 6.5913 10.3145 6.37311 10.3013C6.15491 10.2882 5.93629 10.3188 5.73009 10.3913C5.52388 10.4638 5.33425 10.5768 5.17233 10.7237ZM19.7686 8.56368C20.1893 8.17968 20.2274 7.51473 19.8526 7.08415C19.7642 6.98189 19.6563 6.89838 19.5352 6.83853C19.414 6.77868 19.2821 6.74371 19.1472 6.73568C19.0123 6.72765 18.8772 6.74673 18.7498 6.79179C18.6224 6.83685 18.5054 6.90698 18.4055 6.99803C18.2027 7.18577 18.0805 7.44488 18.0649 7.72084C18.0492 7.99679 18.1412 8.26806 18.3215 8.47756C18.697 8.90815 19.3472 8.94697 19.7686 8.56368ZM11.946 4.6185C12.5121 4.6185 12.9716 4.14838 12.9716 3.56956C12.9716 2.99074 12.5128 2.52062 11.946 2.52062C11.3792 2.52062 10.9203 2.99003 10.9203 3.56956C10.9203 4.14838 11.3792 4.6185 11.946 4.6185ZM4.80527 8.82979C5.37139 8.82979 5.83022 8.36038 5.83022 7.78085C5.83022 7.20203 5.37139 6.73191 4.80457 6.73191C4.23845 6.73191 3.77892 7.20132 3.77892 7.78085C3.77892 8.35968 4.23845 8.82979 4.80527 8.82979ZM4.11563 15.4361C3.91267 15.6238 3.79043 15.8829 3.77463 16.1588C3.75883 16.4348 3.85071 16.7061 4.03092 16.9157C4.40645 17.3463 5.05727 17.3858 5.47798 17.0018C5.89939 16.6185 5.9368 15.9529 5.56269 15.5223C5.47435 15.42 5.36642 15.3365 5.24528 15.2766C5.12413 15.2168 4.99222 15.1818 4.85733 15.1738C4.72245 15.1658 4.58732 15.1848 4.45993 15.2299C4.33254 15.275 4.21547 15.3451 4.11563 15.4361ZM11.946 21.487C12.5121 21.487 12.9716 21.0176 12.9716 20.438C12.9716 19.8592 12.5128 19.3891 11.946 19.3891C11.3792 19.3891 10.9203 19.8592 10.9203 20.438C10.9203 21.0176 11.3792 21.487 11.946 21.487ZM19.0945 17.2601C19.6613 17.2601 20.1201 16.7907 20.1201 16.2112C20.1201 15.6324 19.6613 15.1623 19.0945 15.1623C18.5283 15.1623 18.0688 15.6317 18.0688 16.2112C18.0688 16.79 18.5276 17.2601 19.0945 17.2601ZM17.0735 3.51521C17.1578 3.52035 17.2422 3.50847 17.3217 3.48028C17.4013 3.45208 17.4743 3.40814 17.5365 3.35108C17.5987 3.29403 17.6488 3.22503 17.6837 3.1482C17.7186 3.07137 17.7377 2.98829 17.7399 2.90391C17.7465 2.81974 17.7362 2.7351 17.7096 2.65498C17.683 2.57486 17.6406 2.50087 17.5849 2.43739C17.5293 2.3739 17.4615 2.3222 17.3855 2.28534C17.3096 2.24847 17.227 2.22719 17.1427 2.22274C17.0586 2.21769 16.9743 2.22962 16.8949 2.25782C16.8154 2.28602 16.7425 2.32991 16.6804 2.38688C16.6183 2.44385 16.5683 2.51273 16.5333 2.58943C16.4984 2.66613 16.4793 2.74907 16.477 2.83332C16.4704 2.91749 16.4807 3.00213 16.5073 3.08225C16.5339 3.16238 16.5763 3.23636 16.632 3.29985C16.6876 3.36333 16.7554 3.41503 16.8314 3.4519C16.9073 3.48876 16.9892 3.51075 17.0735 3.51521ZM6.44292 3.40509C6.51215 3.45127 6.58995 3.48309 6.6717 3.49865C6.75346 3.51422 6.8375 3.51322 6.91886 3.49571C7.00022 3.4782 7.07724 3.44454 7.14535 3.39672C7.21347 3.3489 7.27129 3.2879 7.31539 3.21732C7.40689 3.07395 7.43891 2.90056 7.40464 2.73397C7.37038 2.56738 7.27252 2.4207 7.13186 2.32509C7.06261 2.27879 6.98475 2.24688 6.90293 2.23126C6.8211 2.21563 6.73697 2.2166 6.65552 2.23411C6.57408 2.25163 6.49698 2.28532 6.42882 2.33321C6.36065 2.38109 6.30279 2.44218 6.25869 2.51285C6.16718 2.65622 6.13517 2.82961 6.16944 2.9962C6.2037 3.1628 6.30226 3.30947 6.44292 3.40509ZM1.3528 11.4211C1.03869 11.5771 0.916569 11.9689 1.06975 12.2893C1.10579 12.3647 1.15653 12.4322 1.21899 12.4877C1.28145 12.5432 1.35436 12.5857 1.43346 12.6126C1.51256 12.6396 1.59625 12.6505 1.67961 12.6447C1.76298 12.6388 1.84434 12.6164 1.91892 12.5787C2.23304 12.4227 2.35516 12.031 2.20198 11.7105C2.16593 11.6352 2.11522 11.5678 2.05282 11.5124C1.99041 11.4569 1.91757 11.4145 1.83855 11.3875C1.75954 11.3606 1.67594 11.3497 1.59265 11.3554C1.50936 11.3612 1.42736 11.3835 1.3528 11.4211ZM6.82551 20.4931C6.74132 20.4879 6.65697 20.4998 6.57746 20.528C6.49796 20.5561 6.42494 20.6 6.36275 20.657C6.30057 20.7139 6.25049 20.7829 6.21551 20.8596C6.18054 20.9364 6.16137 21.0194 6.15916 21.1037C6.15254 21.1878 6.16284 21.2725 6.18945 21.3526C6.21606 21.4327 6.25844 21.5067 6.3141 21.5702C6.36975 21.6337 6.43755 21.6854 6.51351 21.7222C6.58946 21.7591 6.67202 21.7804 6.75633 21.7849C6.84046 21.7899 6.92475 21.778 7.00417 21.7498C7.08359 21.7216 7.15652 21.6777 7.21863 21.6207C7.28074 21.5637 7.33075 21.4949 7.36568 21.4182C7.40062 21.3415 7.41976 21.2585 7.42198 21.1743C7.4286 21.0902 7.41832 21.0056 7.39176 20.9255C7.36519 20.8454 7.32287 20.7715 7.26729 20.708C7.21171 20.6445 7.14399 20.5928 7.06812 20.5559C6.99225 20.519 6.90976 20.4976 6.82551 20.4931ZM17.4568 20.6025C17.3875 20.5564 17.3097 20.5247 17.228 20.5092C17.1463 20.4937 17.0623 20.4947 16.9809 20.5122C16.8996 20.5297 16.8226 20.5633 16.7545 20.6111C16.6864 20.6588 16.6285 20.7198 16.5843 20.7903C16.4926 20.9337 16.4605 21.1072 16.4947 21.274C16.529 21.4408 16.627 21.5876 16.7679 21.6832C16.8371 21.7294 16.915 21.7611 16.9968 21.7766C17.0785 21.7922 17.1626 21.7911 17.244 21.7735C17.3253 21.7559 17.4023 21.7222 17.4704 21.6743C17.5385 21.6264 17.5963 21.5654 17.6403 21.4947C17.7318 21.3514 17.7639 21.178 17.7296 21.0114C17.6953 20.8448 17.5975 20.6981 17.4568 20.6025ZM22.6076 11.4599C22.5384 11.4138 22.4606 11.3821 22.3788 11.3666C22.2971 11.3511 22.2131 11.3521 22.1318 11.3696C22.0504 11.3871 21.9734 11.4207 21.9053 11.4685C21.8372 11.5162 21.7793 11.5772 21.7352 11.6477C21.6437 11.791 21.6116 11.9644 21.6459 12.131C21.6802 12.2976 21.778 12.4443 21.9187 12.5399C21.9879 12.5862 22.0658 12.6181 22.1476 12.6337C22.2295 12.6494 22.3136 12.6484 22.395 12.6309C22.4765 12.6134 22.5536 12.5797 22.6217 12.5318C22.6899 12.4839 22.7478 12.4228 22.7919 12.3521C22.8834 12.2088 22.9154 12.0354 22.8811 11.8688C22.8468 11.7022 22.7483 11.5555 22.6076 11.4599ZM22.057 6.30909C22.1043 6.26393 22.1329 6.20263 22.1371 6.13738C22.1413 6.07212 22.1208 6.00768 22.0796 5.95685C22.0366 5.90876 21.9765 5.8794 21.9121 5.87505C21.8478 5.8707 21.7842 5.8917 21.7352 5.93356C21.6879 5.97872 21.6593 6.04001 21.6551 6.10527C21.6509 6.17052 21.6714 6.23496 21.7126 6.28579C21.7556 6.33388 21.8157 6.36325 21.8801 6.3676C21.9444 6.37195 22.0079 6.35095 22.057 6.30909ZM11.9912 0.501088C12.0556 0.486056 12.1116 0.446576 12.1474 0.39099C12.1832 0.335404 12.1961 0.268066 12.1832 0.203206C12.1528 0.0705002 12.0222 -0.0233822 11.8923 0.00767661C11.8282 0.0228647 11.7725 0.0623031 11.7368 0.117713C11.7011 0.173123 11.6883 0.240196 11.701 0.304853C11.7314 0.438265 11.8613 0.532147 11.9912 0.501088ZM1.92669 6.36415C2.05657 6.41073 2.19492 6.33238 2.2408 6.20744C2.2613 6.14447 2.25683 6.07605 2.22832 6.01628C2.19982 5.95651 2.14945 5.90997 2.08763 5.88626C1.95704 5.83968 1.81939 5.91803 1.77351 6.04297C1.75302 6.10594 1.75749 6.17437 1.78599 6.23413C1.8145 6.2939 1.86486 6.34044 1.92669 6.36415ZM1.83492 17.6823C1.78733 17.7274 1.7585 17.7887 1.75418 17.8542C1.74986 17.9196 1.77038 17.9842 1.81163 18.0352C1.85464 18.0833 1.91475 18.1127 1.97912 18.117C2.04349 18.1214 2.10701 18.1004 2.1561 18.0585C2.20349 18.0134 2.2322 17.9522 2.23651 17.8869C2.24083 17.8217 2.22044 17.7572 2.17939 17.7063C2.13638 17.6582 2.07627 17.6288 2.0119 17.6245C1.94753 17.6201 1.88401 17.6404 1.83492 17.6823ZM21.9723 17.6279C21.8425 17.5813 21.7048 17.6597 21.6589 17.7846C21.6384 17.8476 21.6429 17.916 21.6714 17.9758C21.6999 18.0355 21.7503 18.0821 21.8121 18.1058C21.942 18.1524 22.0803 18.074 22.1255 17.9491C22.146 17.8862 22.1417 17.8179 22.1133 17.7581C22.0849 17.6983 22.034 17.6518 21.9723 17.6279Z"
fill=
"#3859FF"
/>
<path
d=
"M15.2901 15.4128C14.9386 15.2962 14.5579 15.3024 14.2104 15.4304C13.8628 15.5583 13.5691 15.8005 13.3772 16.1173L13.3616 16.1483C12.979 16.814 12.2209 17.1662 11.4713 16.9234C11.0652 16.7913 10.7253 16.5083 10.5219 16.1328C10.4896 16.023 10.469 15.9102 10.4604 15.7961C10.4301 15.069 10.9736 14.4577 11.6852 14.4189H11.8539C13.1626 14.4733 14.2722 13.4321 14.3259 12.086C14.3795 10.7399 13.3616 9.61256 12.0452 9.5575H11.6852C10.9736 9.52644 10.476 8.96244 10.5063 8.23468C10.5063 8.06244 10.5374 7.89021 10.6059 7.74126L10.6214 7.69468C10.6539 7.62345 10.6821 7.55038 10.7061 7.47585C10.9814 6.57515 10.4915 5.62009 9.61904 5.33844C8.75362 5.06456 7.81974 5.54174 7.53668 6.45021C7.26139 7.32691 7.72021 8.26574 8.57009 8.57138C8.70774 8.61797 8.79174 8.63421 8.92233 8.6575H8.9908C9.66492 8.73515 10.1929 9.29138 10.1696 9.99585C10.1626 10.2542 10.0779 10.4893 9.94798 10.6848C9.72118 11.0472 9.59453 11.4632 9.58092 11.8904C9.55808 12.3864 9.68605 12.8776 9.94798 13.2994C10.0779 13.4949 10.1619 13.73 10.1696 13.9883C10.2007 14.6928 9.74115 15.2483 9.06774 15.3189H9.05221C8.95339 15.3189 8.83833 15.3422 8.74586 15.3577C7.82821 15.5695 7.28468 16.485 7.4908 17.4013C7.69762 18.3246 8.60045 18.8646 9.45809 18.669C9.67681 18.6217 9.88344 18.5298 10.0651 18.3991C10.2468 18.2685 10.3996 18.1018 10.5141 17.9095C10.7022 17.5817 10.997 17.3283 11.3494 17.1916C11.7018 17.0549 12.0904 17.0432 12.4503 17.1584C12.8562 17.2911 13.147 17.5417 13.3539 17.894L13.3764 17.9335C13.5529 18.2229 13.8896 18.5208 14.287 18.638C15.1906 18.9119 16.0786 18.4107 16.3623 17.534C16.6524 16.6184 16.1322 15.6704 15.2901 15.3973V15.4128Z"
fill=
"#3859FF"
/>
</g>
</g>
</svg>
web/app/components/base/icons/src/public/llm/Zhipuai.json
0 → 100644
View file @
60e0bbd7
{
"icon"
:
{
"type"
:
"element"
,
"isRootNode"
:
true
,
"name"
:
"svg"
,
"attributes"
:
{
"width"
:
"24"
,
"height"
:
"24"
,
"viewBox"
:
"0 0 24 24"
,
"fill"
:
"none"
,
"xmlns"
:
"http://www.w3.org/2000/svg"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"g"
,
"attributes"
:
{
"id"
:
"ZHIPU Square"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"g"
,
"attributes"
:
{
"id"
:
"shape"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M11.8923 23.4987C11.8281 23.5139 11.7722 23.5535 11.7365 23.609C11.7008 23.6646 11.6881 23.7319 11.701 23.7966C11.7314 23.9293 11.862 24.0232 11.9919 23.9921C12.0561 23.9771 12.1119 23.9377 12.1476 23.8823C12.1833 23.8268 12.1961 23.7596 12.1832 23.695C12.1528 23.5616 12.0222 23.4677 11.8923 23.4987ZM15.4754 8.52697C16.3105 8.14085 16.681 7.13426 16.3027 6.27944C15.9243 5.42532 14.9403 5.04556 14.1046 5.43238C13.2695 5.81991 12.8982 6.8265 13.2766 7.68062C13.6549 8.53544 14.6389 8.91379 15.4754 8.52697ZM18.0935 13.6284C18.9723 13.358 19.47 12.4107 19.206 11.5129C18.9413 10.6143 18.0152 10.1053 17.1363 10.3757C16.2582 10.646 15.7599 11.5933 16.0246 12.4919C16.2893 13.3898 17.2154 13.8987 18.0935 13.6284ZM5.17233 10.7237C4.84426 11.0278 4.64662 11.4471 4.62083 11.8937C4.59503 12.3403 4.74309 12.7796 5.03398 13.1194C5.17709 13.2847 5.35177 13.4196 5.54777 13.5164C5.74377 13.6132 5.95713 13.6698 6.17533 13.683C6.39352 13.6961 6.61214 13.6655 6.81835 13.593C7.02455 13.5205 7.21418 13.4075 7.3761 13.2606C7.70417 12.9565 7.90182 12.5372 7.92761 12.0906C7.9534 11.644 7.80534 11.2047 7.51445 10.8649C7.37135 10.6996 7.19666 10.5647 7.00066 10.4679C6.80466 10.3711 6.5913 10.3145 6.37311 10.3013C6.15491 10.2882 5.93629 10.3188 5.73009 10.3913C5.52388 10.4638 5.33425 10.5768 5.17233 10.7237ZM19.7686 8.56368C20.1893 8.17968 20.2274 7.51473 19.8526 7.08415C19.7642 6.98189 19.6563 6.89838 19.5352 6.83853C19.414 6.77868 19.2821 6.74371 19.1472 6.73568C19.0123 6.72765 18.8772 6.74673 18.7498 6.79179C18.6224 6.83685 18.5054 6.90698 18.4055 6.99803C18.2027 7.18577 18.0805 7.44488 18.0649 7.72084C18.0492 7.99679 18.1412 8.26806 18.3215 8.47756C18.697 8.90815 19.3472 8.94697 19.7686 8.56368ZM11.946 4.6185C12.5121 4.6185 12.9716 4.14838 12.9716 3.56956C12.9716 2.99074 12.5128 2.52062 11.946 2.52062C11.3792 2.52062 10.9203 2.99003 10.9203 3.56956C10.9203 4.14838 11.3792 4.6185 11.946 4.6185ZM4.80527 8.82979C5.37139 8.82979 5.83022 8.36038 5.83022 7.78085C5.83022 7.20203 5.37139 6.73191 4.80457 6.73191C4.23845 6.73191 3.77892 7.20132 3.77892 7.78085C3.77892 8.35968 4.23845 8.82979 4.80527 8.82979ZM4.11563 15.4361C3.91267 15.6238 3.79043 15.8829 3.77463 16.1588C3.75883 16.4348 3.85071 16.7061 4.03092 16.9157C4.40645 17.3463 5.05727 17.3858 5.47798 17.0018C5.89939 16.6185 5.9368 15.9529 5.56269 15.5223C5.47435 15.42 5.36642 15.3365 5.24528 15.2766C5.12413 15.2168 4.99222 15.1818 4.85733 15.1738C4.72245 15.1658 4.58732 15.1848 4.45993 15.2299C4.33254 15.275 4.21547 15.3451 4.11563 15.4361ZM11.946 21.487C12.5121 21.487 12.9716 21.0176 12.9716 20.438C12.9716 19.8592 12.5128 19.3891 11.946 19.3891C11.3792 19.3891 10.9203 19.8592 10.9203 20.438C10.9203 21.0176 11.3792 21.487 11.946 21.487ZM19.0945 17.2601C19.6613 17.2601 20.1201 16.7907 20.1201 16.2112C20.1201 15.6324 19.6613 15.1623 19.0945 15.1623C18.5283 15.1623 18.0688 15.6317 18.0688 16.2112C18.0688 16.79 18.5276 17.2601 19.0945 17.2601ZM17.0735 3.51521C17.1578 3.52035 17.2422 3.50847 17.3217 3.48028C17.4013 3.45208 17.4743 3.40814 17.5365 3.35108C17.5987 3.29403 17.6488 3.22503 17.6837 3.1482C17.7186 3.07137 17.7377 2.98829 17.7399 2.90391C17.7465 2.81974 17.7362 2.7351 17.7096 2.65498C17.683 2.57486 17.6406 2.50087 17.5849 2.43739C17.5293 2.3739 17.4615 2.3222 17.3855 2.28534C17.3096 2.24847 17.227 2.22719 17.1427 2.22274C17.0586 2.21769 16.9743 2.22962 16.8949 2.25782C16.8154 2.28602 16.7425 2.32991 16.6804 2.38688C16.6183 2.44385 16.5683 2.51273 16.5333 2.58943C16.4984 2.66613 16.4793 2.74907 16.477 2.83332C16.4704 2.91749 16.4807 3.00213 16.5073 3.08225C16.5339 3.16238 16.5763 3.23636 16.632 3.29985C16.6876 3.36333 16.7554 3.41503 16.8314 3.4519C16.9073 3.48876 16.9892 3.51075 17.0735 3.51521ZM6.44292 3.40509C6.51215 3.45127 6.58995 3.48309 6.6717 3.49865C6.75346 3.51422 6.8375 3.51322 6.91886 3.49571C7.00022 3.4782 7.07724 3.44454 7.14535 3.39672C7.21347 3.3489 7.27129 3.2879 7.31539 3.21732C7.40689 3.07395 7.43891 2.90056 7.40464 2.73397C7.37038 2.56738 7.27252 2.4207 7.13186 2.32509C7.06261 2.27879 6.98475 2.24688 6.90293 2.23126C6.8211 2.21563 6.73697 2.2166 6.65552 2.23411C6.57408 2.25163 6.49698 2.28532 6.42882 2.33321C6.36065 2.38109 6.30279 2.44218 6.25869 2.51285C6.16718 2.65622 6.13517 2.82961 6.16944 2.9962C6.2037 3.1628 6.30226 3.30947 6.44292 3.40509ZM1.3528 11.4211C1.03869 11.5771 0.916569 11.9689 1.06975 12.2893C1.10579 12.3647 1.15653 12.4322 1.21899 12.4877C1.28145 12.5432 1.35436 12.5857 1.43346 12.6126C1.51256 12.6396 1.59625 12.6505 1.67961 12.6447C1.76298 12.6388 1.84434 12.6164 1.91892 12.5787C2.23304 12.4227 2.35516 12.031 2.20198 11.7105C2.16593 11.6352 2.11522 11.5678 2.05282 11.5124C1.99041 11.4569 1.91757 11.4145 1.83855 11.3875C1.75954 11.3606 1.67594 11.3497 1.59265 11.3554C1.50936 11.3612 1.42736 11.3835 1.3528 11.4211ZM6.82551 20.4931C6.74132 20.4879 6.65697 20.4998 6.57746 20.528C6.49796 20.5561 6.42494 20.6 6.36275 20.657C6.30057 20.7139 6.25049 20.7829 6.21551 20.8596C6.18054 20.9364 6.16137 21.0194 6.15916 21.1037C6.15254 21.1878 6.16284 21.2725 6.18945 21.3526C6.21606 21.4327 6.25844 21.5067 6.3141 21.5702C6.36975 21.6337 6.43755 21.6854 6.51351 21.7222C6.58946 21.7591 6.67202 21.7804 6.75633 21.7849C6.84046 21.7899 6.92475 21.778 7.00417 21.7498C7.08359 21.7216 7.15652 21.6777 7.21863 21.6207C7.28074 21.5637 7.33075 21.4949 7.36568 21.4182C7.40062 21.3415 7.41976 21.2585 7.42198 21.1743C7.4286 21.0902 7.41832 21.0056 7.39176 20.9255C7.36519 20.8454 7.32287 20.7715 7.26729 20.708C7.21171 20.6445 7.14399 20.5928 7.06812 20.5559C6.99225 20.519 6.90976 20.4976 6.82551 20.4931ZM17.4568 20.6025C17.3875 20.5564 17.3097 20.5247 17.228 20.5092C17.1463 20.4937 17.0623 20.4947 16.9809 20.5122C16.8996 20.5297 16.8226 20.5633 16.7545 20.6111C16.6864 20.6588 16.6285 20.7198 16.5843 20.7903C16.4926 20.9337 16.4605 21.1072 16.4947 21.274C16.529 21.4408 16.627 21.5876 16.7679 21.6832C16.8371 21.7294 16.915 21.7611 16.9968 21.7766C17.0785 21.7922 17.1626 21.7911 17.244 21.7735C17.3253 21.7559 17.4023 21.7222 17.4704 21.6743C17.5385 21.6264 17.5963 21.5654 17.6403 21.4947C17.7318 21.3514 17.7639 21.178 17.7296 21.0114C17.6953 20.8448 17.5975 20.6981 17.4568 20.6025ZM22.6076 11.4599C22.5384 11.4138 22.4606 11.3821 22.3788 11.3666C22.2971 11.3511 22.2131 11.3521 22.1318 11.3696C22.0504 11.3871 21.9734 11.4207 21.9053 11.4685C21.8372 11.5162 21.7793 11.5772 21.7352 11.6477C21.6437 11.791 21.6116 11.9644 21.6459 12.131C21.6802 12.2976 21.778 12.4443 21.9187 12.5399C21.9879 12.5862 22.0658 12.6181 22.1476 12.6337C22.2295 12.6494 22.3136 12.6484 22.395 12.6309C22.4765 12.6134 22.5536 12.5797 22.6217 12.5318C22.6899 12.4839 22.7478 12.4228 22.7919 12.3521C22.8834 12.2088 22.9154 12.0354 22.8811 11.8688C22.8468 11.7022 22.7483 11.5555 22.6076 11.4599ZM22.057 6.30909C22.1043 6.26393 22.1329 6.20263 22.1371 6.13738C22.1413 6.07212 22.1208 6.00768 22.0796 5.95685C22.0366 5.90876 21.9765 5.8794 21.9121 5.87505C21.8478 5.8707 21.7842 5.8917 21.7352 5.93356C21.6879 5.97872 21.6593 6.04001 21.6551 6.10527C21.6509 6.17052 21.6714 6.23496 21.7126 6.28579C21.7556 6.33388 21.8157 6.36325 21.8801 6.3676C21.9444 6.37195 22.0079 6.35095 22.057 6.30909ZM11.9912 0.501088C12.0556 0.486056 12.1116 0.446576 12.1474 0.39099C12.1832 0.335404 12.1961 0.268066 12.1832 0.203206C12.1528 0.0705002 12.0222 -0.0233822 11.8923 0.00767661C11.8282 0.0228647 11.7725 0.0623031 11.7368 0.117713C11.7011 0.173123 11.6883 0.240196 11.701 0.304853C11.7314 0.438265 11.8613 0.532147 11.9912 0.501088ZM1.92669 6.36415C2.05657 6.41073 2.19492 6.33238 2.2408 6.20744C2.2613 6.14447 2.25683 6.07605 2.22832 6.01628C2.19982 5.95651 2.14945 5.90997 2.08763 5.88626C1.95704 5.83968 1.81939 5.91803 1.77351 6.04297C1.75302 6.10594 1.75749 6.17437 1.78599 6.23413C1.8145 6.2939 1.86486 6.34044 1.92669 6.36415ZM1.83492 17.6823C1.78733 17.7274 1.7585 17.7887 1.75418 17.8542C1.74986 17.9196 1.77038 17.9842 1.81163 18.0352C1.85464 18.0833 1.91475 18.1127 1.97912 18.117C2.04349 18.1214 2.10701 18.1004 2.1561 18.0585C2.20349 18.0134 2.2322 17.9522 2.23651 17.8869C2.24083 17.8217 2.22044 17.7572 2.17939 17.7063C2.13638 17.6582 2.07627 17.6288 2.0119 17.6245C1.94753 17.6201 1.88401 17.6404 1.83492 17.6823ZM21.9723 17.6279C21.8425 17.5813 21.7048 17.6597 21.6589 17.7846C21.6384 17.8476 21.6429 17.916 21.6714 17.9758C21.6999 18.0355 21.7503 18.0821 21.8121 18.1058C21.942 18.1524 22.0803 18.074 22.1255 17.9491C22.146 17.8862 22.1417 17.8179 22.1133 17.7581C22.0849 17.6983 22.034 17.6518 21.9723 17.6279Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M15.2901 15.4128C14.9386 15.2962 14.5579 15.3024 14.2104 15.4304C13.8628 15.5583 13.5691 15.8005 13.3772 16.1173L13.3616 16.1483C12.979 16.814 12.2209 17.1662 11.4713 16.9234C11.0652 16.7913 10.7253 16.5083 10.5219 16.1328C10.4896 16.023 10.469 15.9102 10.4604 15.7961C10.4301 15.069 10.9736 14.4577 11.6852 14.4189H11.8539C13.1626 14.4733 14.2722 13.4321 14.3259 12.086C14.3795 10.7399 13.3616 9.61256 12.0452 9.5575H11.6852C10.9736 9.52644 10.476 8.96244 10.5063 8.23468C10.5063 8.06244 10.5374 7.89021 10.6059 7.74126L10.6214 7.69468C10.6539 7.62345 10.6821 7.55038 10.7061 7.47585C10.9814 6.57515 10.4915 5.62009 9.61904 5.33844C8.75362 5.06456 7.81974 5.54174 7.53668 6.45021C7.26139 7.32691 7.72021 8.26574 8.57009 8.57138C8.70774 8.61797 8.79174 8.63421 8.92233 8.6575H8.9908C9.66492 8.73515 10.1929 9.29138 10.1696 9.99585C10.1626 10.2542 10.0779 10.4893 9.94798 10.6848C9.72118 11.0472 9.59453 11.4632 9.58092 11.8904C9.55808 12.3864 9.68605 12.8776 9.94798 13.2994C10.0779 13.4949 10.1619 13.73 10.1696 13.9883C10.2007 14.6928 9.74115 15.2483 9.06774 15.3189H9.05221C8.95339 15.3189 8.83833 15.3422 8.74586 15.3577C7.82821 15.5695 7.28468 16.485 7.4908 17.4013C7.69762 18.3246 8.60045 18.8646 9.45809 18.669C9.67681 18.6217 9.88344 18.5298 10.0651 18.3991C10.2468 18.2685 10.3996 18.1018 10.5141 17.9095C10.7022 17.5817 10.997 17.3283 11.3494 17.1916C11.7018 17.0549 12.0904 17.0432 12.4503 17.1584C12.8562 17.2911 13.147 17.5417 13.3539 17.894L13.3764 17.9335C13.5529 18.2229 13.8896 18.5208 14.287 18.638C15.1906 18.9119 16.0786 18.4107 16.3623 17.534C16.6524 16.6184 16.1322 15.6704 15.2901 15.3973V15.4128Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
}
]
}
]
}
]
},
"name"
:
"Zhipuai"
}
\ No newline at end of file
web/app/components/base/icons/src/public/llm/Zhipuai.tsx
0 → 100644
View file @
60e0bbd7
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./Zhipuai.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
const
Icon
=
React
.
forwardRef
<
React
.
MutableRefObject
<
SVGElement
>
,
Omit
<
IconBaseProps
,
'data'
>>
((
props
,
ref
,
)
=>
<
IconBase
{
...
props
}
ref=
{
ref
}
data=
{
data
as
IconData
}
/>)
Icon
.
displayName
=
'Zhipuai'
export
default
Icon
web/app/components/base/icons/src/public/llm/ZhipuaiText.json
0 → 100644
View file @
60e0bbd7
{
"icon"
:
{
"type"
:
"element"
,
"isRootNode"
:
true
,
"name"
:
"svg"
,
"attributes"
:
{
"width"
:
"89"
,
"height"
:
"32"
,
"viewBox"
:
"0 0 89 32"
,
"fill"
:
"none"
,
"xmlns"
:
"http://www.w3.org/2000/svg"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"g"
,
"attributes"
:
{
"id"
:
"shape"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M88.8045 8.82998H86.7123V22.4497H88.8045V8.82998ZM80.5485 8.82998L78.4158 22.4497H80.3339L80.5589 20.9156L80.6709 20.1853C80.6916 20.0394 80.8751 19.9142 81.0793 19.9142H82.8855C83.0897 19.9142 83.2732 20.029 83.2939 20.1853L83.4059 20.9156L83.6299 22.4497H85.7429L83.6102 8.82998H80.5485ZM82.7838 18.2963H81.181C81.1522 18.2968 81.1237 18.2909 81.0975 18.279C81.0713 18.2671 81.0481 18.2495 81.0295 18.2275C81.0109 18.2056 80.9975 18.1797 80.9902 18.1519C80.9828 18.1241 80.9818 18.095 80.9871 18.0667L81.7024 12.1175C81.7212 11.95 81.8436 11.8352 81.9772 11.8352C82.109 11.8352 82.2426 11.95 82.253 12.1175L82.9673 18.0657C82.9767 18.1919 82.8855 18.2963 82.7735 18.2963H82.7838ZM14.8563 31.3316C14.7706 31.3519 14.6961 31.4046 14.6485 31.4787C14.6009 31.5528 14.584 31.6425 14.6012 31.7288C14.6417 31.9057 14.8158 32.0309 14.989 31.9895C15.0746 31.9695 15.1491 31.9169 15.1967 31.843C15.2443 31.769 15.2613 31.6795 15.244 31.5933C15.2036 31.4154 15.0295 31.2902 14.8563 31.3316ZM19.6337 11.3693C20.7471 10.8544 21.2412 9.51233 20.7368 8.37257C20.2323 7.23374 18.9203 6.72739 17.8059 7.24316C16.6925 7.75986 16.1975 9.10198 16.7019 10.2408C17.2064 11.3806 18.5184 11.885 19.6337 11.3693ZM23.1245 18.1712C24.2963 17.8107 24.9598 16.5476 24.6078 15.3504C24.2549 14.1523 23.02 13.4737 21.8483 13.8342C20.6775 14.1947 20.013 15.4577 20.3659 16.6559C20.7189 17.853 21.9537 18.5316 23.1245 18.1712ZM5.89628 14.2982C5.45885 14.7037 5.19533 15.2628 5.16094 15.8583C5.12655 16.4537 5.32396 17.0394 5.71181 17.4926C5.90262 17.7129 6.13553 17.8928 6.39686 18.0219C6.6582 18.1509 6.94268 18.2264 7.23361 18.2439C7.52453 18.2615 7.81602 18.2207 8.09096 18.124C8.36591 18.0273 8.61875 17.8766 8.83463 17.6808C9.27207 17.2753 9.53559 16.7162 9.56998 16.1208C9.60437 15.5253 9.40695 14.9396 9.0191 14.4864C8.8283 14.2661 8.59539 14.0862 8.33405 13.9571C8.07272 13.8281 7.78823 13.7526 7.49731 13.7351C7.20639 13.7175 6.91489 13.7583 6.63995 13.855C6.36501 13.9517 6.11217 14.1024 5.89628 14.2982ZM25.3579 11.4182C25.9189 10.9062 25.9697 10.0196 25.4699 9.44551C25.3521 9.30917 25.2082 9.19782 25.0467 9.11802C24.8852 9.03822 24.7093 8.99159 24.5295 8.98088C24.3496 8.97018 24.1694 8.99562 23.9996 9.0557C23.8297 9.11578 23.6736 9.20928 23.5405 9.33068C23.27 9.581 23.1072 9.92649 23.0863 10.2944C23.0654 10.6624 23.1881 11.0241 23.4285 11.3034C23.9292 11.8775 24.796 11.9293 25.3579 11.4182ZM14.9278 6.15798C15.6826 6.15798 16.2953 5.53116 16.2953 4.75939C16.2953 3.98763 15.6836 3.3608 14.9278 3.3608C14.172 3.3608 13.5603 3.98669 13.5603 4.75939C13.5603 5.53116 14.172 6.15798 14.9278 6.15798ZM5.40687 11.773C6.16169 11.773 6.77346 11.1472 6.77346 10.3744C6.77346 9.60268 6.16169 8.97586 5.40593 8.97586C4.65111 8.97586 4.0384 9.60174 4.0384 10.3744C4.0384 11.1462 4.65111 11.773 5.40687 11.773ZM4.48734 20.5815C4.21673 20.8317 4.05374 21.1771 4.03268 21.5451C4.01161 21.913 4.13411 22.2748 4.3744 22.5542C4.87511 23.1283 5.74287 23.181 6.30381 22.669C6.86569 22.158 6.91558 21.2704 6.41675 20.6963C6.29897 20.56 6.15507 20.4486 5.99354 20.3688C5.83201 20.289 5.65613 20.2424 5.47628 20.2317C5.29643 20.221 5.11626 20.2464 4.94641 20.3065C4.77656 20.3666 4.62046 20.4601 4.48734 20.5815ZM14.9278 28.6493C15.6826 28.6493 16.2953 28.0234 16.2953 27.2507C16.2953 26.4789 15.6836 25.8521 14.9278 25.8521C14.172 25.8521 13.5603 26.4789 13.5603 27.2507C13.5603 28.0234 14.172 28.6493 14.9278 28.6493ZM24.4591 23.0135C25.2149 23.0135 25.8266 22.3876 25.8266 21.6149C25.8266 20.8432 25.2149 20.2163 24.4591 20.2163C23.7043 20.2163 23.0916 20.8422 23.0916 21.6149C23.0916 22.3867 23.7033 23.0135 24.4591 23.0135ZM21.7645 4.68692C21.8768 4.69378 21.9894 4.67794 22.0955 4.64035C22.2015 4.60275 22.2989 4.54416 22.3819 4.46809C22.4648 4.39202 22.5315 4.30001 22.5781 4.19757C22.6247 4.09514 22.6502 3.98436 22.653 3.87186C22.6618 3.75964 22.6481 3.64679 22.6126 3.53995C22.5771 3.43312 22.5206 3.33448 22.4464 3.24983C22.3722 3.16518 22.2818 3.09625 22.1805 3.0471C22.0793 2.99794 21.9692 2.96956 21.8568 2.96363C21.7446 2.9569 21.6322 2.9728 21.5263 3.0104C21.4204 3.048 21.3232 3.10652 21.2404 3.18248C21.1575 3.25845 21.0909 3.35029 21.0443 3.45256C20.9977 3.55482 20.9722 3.66541 20.9692 3.77774C20.9604 3.88997 20.9741 4.00282 21.0096 4.10965C21.0451 4.21648 21.1016 4.31513 21.1758 4.39978C21.25 4.48442 21.3404 4.55335 21.4417 4.60251C21.543 4.65166 21.6521 4.68099 21.7645 4.68692ZM7.5904 4.5401C7.68271 4.60167 7.78644 4.6441 7.89544 4.66485C8.00445 4.68561 8.11651 4.68427 8.22499 4.66093C8.33347 4.63758 8.43616 4.5927 8.52697 4.52894C8.61779 4.46518 8.69489 4.38384 8.75369 4.28974C8.8757 4.09858 8.91838 3.8674 8.87269 3.64527C8.827 3.42315 8.69653 3.22758 8.50899 3.1001C8.41664 3.03837 8.31284 2.99582 8.20374 2.97499C8.09464 2.95415 7.98246 2.95544 7.87387 2.9788C7.76528 3.00215 7.66248 3.04708 7.57159 3.11092C7.4807 3.17477 7.40356 3.25622 7.34475 3.35045C7.22275 3.54161 7.18006 3.7728 7.22575 3.99492C7.27144 4.21704 7.40285 4.41261 7.5904 4.5401ZM0.803576 15.2281C0.384753 15.4361 0.221929 15.9584 0.426164 16.3857C0.474224 16.4863 0.541877 16.5762 0.625154 16.6502C0.708432 16.7242 0.805655 16.7809 0.911121 16.8168C1.01659 16.8528 1.12817 16.8673 1.23932 16.8595C1.35047 16.8518 1.45895 16.8219 1.5584 16.7716C1.97722 16.5636 2.14005 16.0413 1.93581 15.614C1.88775 15.5136 1.82013 15.4238 1.73693 15.3498C1.65372 15.2759 1.55659 15.2193 1.45124 15.1833C1.34588 15.1474 1.23442 15.1329 1.12337 15.1405C1.01232 15.1482 0.902978 15.178 0.803576 15.2281ZM8.10052 27.3241C7.98827 27.3172 7.87579 27.333 7.76979 27.3706C7.66378 27.4081 7.56642 27.4666 7.48351 27.5426C7.40059 27.6186 7.33383 27.7105 7.28719 27.8128C7.24055 27.9151 7.215 28.0258 7.21205 28.1382C7.20322 28.2504 7.21695 28.3633 7.25243 28.4701C7.28791 28.577 7.34442 28.6756 7.41863 28.7602C7.49284 28.8449 7.58324 28.9138 7.68451 28.963C7.78578 29.0121 7.89587 29.0405 8.00828 29.0464C8.12045 29.0532 8.23283 29.0373 8.33873 28.9997C8.44462 28.9621 8.54187 28.9035 8.62468 28.8276C8.70749 28.7516 8.77417 28.6598 8.82075 28.5575C8.86733 28.4553 8.89286 28.3447 8.89581 28.2323C8.90464 28.1202 8.89094 28.0074 8.85551 27.9006C8.82009 27.7939 8.76367 27.6953 8.68956 27.6106C8.61545 27.526 8.52515 27.457 8.42399 27.4078C8.32283 27.3586 8.21285 27.3301 8.10052 27.3241ZM22.2756 27.47C22.1832 27.4085 22.0795 27.3662 21.9705 27.3455C21.8615 27.3248 21.7495 27.3262 21.6411 27.3495C21.5326 27.3729 21.43 27.4177 21.3391 27.4814C21.2483 27.5451 21.1712 27.6263 21.1123 27.7203C20.99 27.9116 20.9471 28.143 20.9928 28.3653C21.0385 28.5877 21.1692 28.7834 21.357 28.9109C21.4494 28.9725 21.5531 29.0148 21.6622 29.0355C21.7712 29.0562 21.8833 29.0548 21.9918 29.0313C22.1003 29.0079 22.2029 28.9629 22.2937 28.8991C22.3845 28.8352 22.4615 28.7538 22.5203 28.6596C22.6423 28.4685 22.685 28.2373 22.6393 28.0152C22.5936 27.793 22.4631 27.5975 22.2756 27.47ZM29.1433 15.2799C29.051 15.2184 28.9473 15.1761 28.8383 15.1554C28.7293 15.1347 28.6173 15.1361 28.5088 15.1594C28.4004 15.1828 28.2977 15.2276 28.2069 15.2913C28.1161 15.355 28.0389 15.4362 27.98 15.5302C27.858 15.7214 27.8154 15.9526 27.861 16.1747C27.9067 16.3968 28.0372 16.5924 28.2248 16.7199C28.3171 16.7816 28.4209 16.8241 28.53 16.845C28.6391 16.8658 28.7513 16.8645 28.8599 16.8412C28.9685 16.8178 29.0713 16.7729 29.1621 16.709C29.253 16.6452 29.3302 16.5637 29.389 16.4695C29.511 16.2783 29.5537 16.0472 29.508 15.825C29.4623 15.6029 29.3309 15.4073 29.1433 15.2799ZM28.4092 8.4121C28.4723 8.35188 28.5104 8.27016 28.516 8.18315C28.5215 8.09614 28.4942 8.01022 28.4393 7.94245C28.382 7.87833 28.3018 7.83918 28.216 7.83338C28.1302 7.82757 28.0455 7.85557 27.98 7.91139C27.917 7.9716 27.8789 8.05333 27.8733 8.14034C27.8677 8.22734 27.8951 8.31326 27.9499 8.38104C28.0073 8.44516 28.0874 8.48431 28.1732 8.49011C28.2591 8.49591 28.3438 8.46791 28.4092 8.4121ZM14.988 0.668097C15.0739 0.648054 15.1486 0.595414 15.1964 0.521299C15.2442 0.447185 15.2613 0.357402 15.244 0.270921C15.2036 0.0939798 15.0295 -0.0311966 14.8563 0.0102151C14.7708 0.0304659 14.6965 0.0830504 14.6489 0.156931C14.6013 0.230811 14.5843 0.320241 14.6012 0.40645C14.6417 0.584333 14.8149 0.709509 14.988 0.668097ZM1.56875 8.48551C1.74193 8.54763 1.9264 8.44315 1.98758 8.27657C2.0149 8.19261 2.00894 8.10137 1.97093 8.02168C1.93293 7.94199 1.86578 7.87994 1.78334 7.84833C1.60922 7.78621 1.42569 7.89068 1.36452 8.05727C1.3372 8.14123 1.34315 8.23247 1.38116 8.31216C1.41916 8.39185 1.48632 8.4539 1.56875 8.48551ZM1.4464 23.5763C1.38294 23.6365 1.3445 23.7183 1.33874 23.8055C1.33299 23.8928 1.36034 23.979 1.41534 24.0469C1.47268 24.111 1.55284 24.1502 1.63866 24.156C1.72449 24.1618 1.80918 24.1338 1.87463 24.078C1.93783 24.0179 1.9761 23.9362 1.98186 23.8492C1.98761 23.7622 1.96042 23.6762 1.90569 23.6083C1.84835 23.5442 1.7682 23.5051 1.68237 23.4993C1.59655 23.4935 1.51185 23.5205 1.4464 23.5763ZM28.2963 23.5039C28.1231 23.4417 27.9396 23.5462 27.8784 23.7128C27.8511 23.7968 27.857 23.888 27.895 23.9677C27.933 24.0474 28.0002 24.1094 28.0826 24.141C28.2558 24.2032 28.4403 24.0987 28.5005 23.9321C28.5279 23.8483 28.5221 23.7571 28.4842 23.6774C28.4464 23.5978 28.3785 23.5356 28.2963 23.5039Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M19.3866 20.5504C18.918 20.3949 18.4104 20.4031 17.947 20.5738C17.4836 20.7444 17.0919 21.0674 16.836 21.4897L16.8153 21.5311C16.3052 22.4186 15.2944 22.8883 14.2949 22.5645C13.7534 22.3884 13.3002 22.011 13.029 21.5104C12.986 21.364 12.9585 21.2135 12.9471 21.0614C12.9066 20.092 13.6313 19.277 14.58 19.2252H14.805C16.5499 19.2977 18.0295 17.9094 18.101 16.1146C18.1725 14.3198 16.8153 12.8167 15.06 12.7433H14.58C13.6313 12.7019 12.9678 11.9499 13.0083 10.9795C13.0083 10.7499 13.0497 10.5203 13.141 10.3217L13.1617 10.2595C13.205 10.1646 13.2427 10.0672 13.2746 9.96778C13.6417 8.76684 12.9885 7.49343 11.8252 7.1179C10.6713 6.75272 9.42616 7.38896 9.04875 8.60025C8.68169 9.76919 9.29345 11.021 10.4266 11.4285C10.6102 11.4906 10.7222 11.5123 10.8963 11.5433H10.9876C11.8864 11.6468 12.5904 12.3885 12.5593 13.3278C12.5499 13.6723 12.437 13.9857 12.2638 14.2464C11.9614 14.7295 11.7925 15.2842 11.7744 15.8539C11.7439 16.5152 11.9146 17.1701 12.2638 17.7325C12.437 17.9932 12.549 18.3066 12.5593 18.6511C12.6007 19.5904 11.988 20.3311 11.0902 20.4252H11.0695C10.9377 20.4252 10.7843 20.4563 10.661 20.477C9.43745 20.7593 8.71275 21.98 8.98757 23.2017C9.26333 24.4327 10.4671 25.1527 11.6106 24.892C11.9023 24.8289 12.1778 24.7064 12.42 24.5321C12.6622 24.3579 12.866 24.1357 13.0186 23.8793C13.2694 23.4422 13.6626 23.1044 14.1324 22.9221C14.6022 22.7399 15.1203 22.7243 15.6003 22.8779C16.1415 23.0548 16.5292 23.389 16.805 23.8586L16.8351 23.9113C17.0704 24.2972 17.5193 24.6944 18.0492 24.8506C19.2539 25.2158 20.4379 24.5475 20.8163 23.3786C21.2031 22.1579 20.5095 20.8939 19.3866 20.5297V20.5504ZM75.0064 14.1005C74.4454 14.1005 73.9862 14.5701 73.9862 15.1443C73.9862 15.7184 74.4454 16.188 75.0064 16.188C75.5673 16.188 76.0266 15.7174 76.0266 15.1433C76.0286 14.87 75.9225 14.607 75.7314 14.4117C75.5403 14.2163 75.2797 14.1045 75.0064 14.1005ZM38.1029 10.7395H41.4506C41.5214 10.7415 41.5886 10.7709 41.6381 10.8214C41.6876 10.872 41.7156 10.9398 41.716 11.0106C41.716 11.0426 41.716 11.084 41.6963 11.1047L37.9203 20.3941V22.2831H43.972V20.3631H40.4407C40.3698 20.3611 40.3025 20.3316 40.2529 20.2809C40.2034 20.2301 40.1756 20.162 40.1753 20.0911C40.1753 20.06 40.1753 20.028 40.196 19.997L43.972 10.7075V8.82049H38.1029V10.7395ZM49.6153 14.3198C49.6149 14.3906 49.5869 14.4584 49.5374 14.509C49.4879 14.5595 49.4207 14.5889 49.3499 14.5908H47.524C47.4887 14.5908 47.4536 14.5838 47.421 14.5701C47.3884 14.5564 47.3588 14.5364 47.334 14.5112C47.3092 14.4859 47.2897 14.456 47.2766 14.4232C47.2635 14.3903 47.2571 14.3552 47.2577 14.3198V8.81861H45.1862V22.2821H47.2577V16.7819C47.2578 16.7127 47.2842 16.6461 47.3315 16.5956C47.3789 16.5451 47.4437 16.5144 47.5127 16.5099H49.3396C49.4826 16.5099 49.5946 16.636 49.5946 16.7819V22.2821H51.6972V8.81861H49.5946V14.3188L49.6153 14.3198ZM55.2887 8.81861H53.2182V22.2831H55.2887V8.81861ZM59.8412 8.81861H56.7899V22.2831H58.8605V17.2214H59.8412C61.9127 17.2214 62.9226 16.0525 62.9226 13.8915V12.1381C62.9226 9.98849 61.9127 8.80825 59.8412 8.80825V8.81861ZM60.8511 14.0271C60.8511 14.9871 60.4934 15.3005 59.8412 15.3005H59.1259C59.0907 15.3002 59.0559 15.293 59.0235 15.2792C58.9911 15.2654 58.9617 15.2454 58.9371 15.2202C58.9125 15.1949 58.8932 15.1651 58.8802 15.1324C58.8672 15.0996 58.8608 15.0646 58.8615 15.0294V11.0106C58.8619 10.9398 58.8899 10.872 58.9394 10.8214C58.9889 10.7709 59.0561 10.7415 59.1269 10.7395H59.8412C60.4944 10.7395 60.8511 11.0426 60.8511 12.013V14.0271ZM67.9946 19.2035C67.9946 20.1635 67.5767 20.509 66.9236 20.509C66.2704 20.509 65.8525 20.1645 65.8525 19.2035V8.81955H63.78V19.069C63.78 21.2186 64.8313 22.4497 66.8624 22.4497C68.8934 22.4497 69.9447 21.2186 69.9447 19.068V8.81861H67.9852V19.2035H67.9946Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
}
]
}
]
},
"name"
:
"ZhipuaiText"
}
\ No newline at end of file
web/app/components/base/icons/src/public/llm/ZhipuaiText.tsx
0 → 100644
View file @
60e0bbd7
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./ZhipuaiText.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
const
Icon
=
React
.
forwardRef
<
React
.
MutableRefObject
<
SVGElement
>
,
Omit
<
IconBaseProps
,
'data'
>>
((
props
,
ref
,
)
=>
<
IconBase
{
...
props
}
ref=
{
ref
}
data=
{
data
as
IconData
}
/>)
Icon
.
displayName
=
'ZhipuaiText'
export
default
Icon
web/app/components/base/icons/src/public/llm/ZhipuaiTextCn.json
0 → 100644
View file @
60e0bbd7
{
"icon"
:
{
"type"
:
"element"
,
"isRootNode"
:
true
,
"name"
:
"svg"
,
"attributes"
:
{
"width"
:
"86"
,
"height"
:
"32"
,
"viewBox"
:
"0 0 86 32"
,
"fill"
:
"none"
,
"xmlns"
:
"http://www.w3.org/2000/svg"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"g"
,
"attributes"
:
{
"id"
:
"shape"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M85.3919 8.94111H83.2742V22.4705H85.3919V8.94111ZM76.9919 8.94111L74.8272 22.4705H76.7801L77.0154 20.9411L77.133 20.2117C77.1566 20.0705 77.3448 19.9529 77.5566 19.9529H79.3919C79.6036 19.9529 79.7919 20.0705 79.8154 20.2117L79.933 20.9411L80.1683 22.4705H82.3095L80.1213 8.94111H76.9919ZM79.2742 18.3529H77.6507C77.533 18.3529 77.4389 18.2352 77.4389 18.1176L78.1683 12.2117C78.1919 12.047 78.3095 11.9293 78.4507 11.9293C78.5919 11.9293 78.7095 12.047 78.733 12.2117L79.4625 18.1176C79.486 18.2588 79.3919 18.3529 79.2742 18.3529ZM15.2742 31.3176C15.086 31.3176 14.9448 31.4588 14.9448 31.647C14.9448 31.8352 15.086 31.9764 15.2742 31.9764C15.4624 31.9764 15.6036 31.8352 15.6036 31.647C15.6036 31.4588 15.4624 31.3176 15.2742 31.3176ZM19.133 11.6705C19.7321 11.6705 20.3067 11.4325 20.7303 11.0089C21.1539 10.5853 21.3919 10.0108 21.3919 9.4117C21.3919 8.81262 21.1539 8.23808 20.7303 7.81447C20.3067 7.39086 19.7321 7.15288 19.133 7.15288C18.534 7.15288 17.9594 7.39086 17.5358 7.81447C17.1122 8.23808 16.8742 8.81262 16.8742 9.4117C16.8742 10.0108 17.1122 10.5853 17.5358 11.0089C17.9594 11.4325 18.534 11.6705 19.133 11.6705ZM24.5601 17.6752C24.7699 17.4655 24.9363 17.2165 25.0498 16.9424C25.1633 16.6683 25.2218 16.3746 25.2218 16.0779C25.2218 15.7813 25.1633 15.4875 25.0498 15.2135C24.9363 14.9394 24.7699 14.6904 24.5601 14.4806C24.1365 14.057 23.5619 13.8191 22.9628 13.8191C22.3638 13.8191 21.7892 14.0571 21.3656 14.4808C20.942 14.9044 20.7041 15.4789 20.7041 16.078C20.7041 16.6771 20.9421 17.2516 21.3657 17.6752C21.5755 17.885 21.8245 18.0514 22.0985 18.165C22.3726 18.2785 22.6663 18.337 22.9629 18.337C23.2596 18.337 23.5533 18.2785 23.8273 18.165C24.1014 18.0514 24.3504 17.885 24.5601 17.6752ZM9.69233 16.9369C9.9216 16.3834 9.9216 15.7614 9.69232 15.2079C9.46304 14.6544 9.02327 14.2146 8.46974 13.9853C7.91622 13.7561 7.29429 13.7561 6.74077 13.9854C6.18725 14.2146 5.74749 14.6544 5.51821 15.2079C5.28894 15.7615 5.28895 16.3834 5.51823 16.9369C5.74751 17.4904 6.18728 17.9302 6.7408 18.1595C7.01488 18.273 7.30863 18.3314 7.60529 18.3314C7.90195 18.3314 8.1957 18.273 8.46977 18.1595C9.02329 17.9302 9.46306 17.4904 9.69233 16.9369ZM24.9683 11.8823C25.1506 11.8823 25.3312 11.8464 25.4996 11.7766C25.668 11.7069 25.8211 11.6046 25.95 11.4757C26.0789 11.3468 26.1811 11.1937 26.2509 11.0253C26.3207 10.8569 26.3566 10.6764 26.3566 10.4941C26.3566 10.3117 26.3207 10.1312 26.2509 9.9628C26.1811 9.79437 26.0789 9.64133 25.95 9.51242C25.8211 9.38351 25.668 9.28126 25.4996 9.21149C25.3312 9.14173 25.1506 9.10582 24.9683 9.10582C24.6001 9.10582 24.247 9.25208 23.9867 9.51242C23.7264 9.77277 23.5801 10.1259 23.5801 10.4941C23.5801 10.8622 23.7264 11.2153 23.9867 11.4757C24.247 11.736 24.6001 11.8823 24.9683 11.8823ZM15.5904 6.24605C15.77 6.20622 15.9398 6.13112 16.0901 6.02511C16.2403 5.9191 16.368 5.78429 16.4658 5.62851C16.5635 5.47273 16.6293 5.29909 16.6593 5.11766C16.6894 4.93624 16.6831 4.75065 16.6408 4.57168C16.5986 4.39271 16.5212 4.22392 16.4131 4.07512C16.3051 3.92631 16.1685 3.80046 16.0114 3.70486C15.8543 3.60926 15.6798 3.54583 15.498 3.51824C15.3162 3.49066 15.1307 3.49947 14.9523 3.54417C14.5984 3.63287 14.2936 3.85737 14.1039 4.1691C13.9142 4.48083 13.8548 4.85472 13.9387 5.20986C14.0226 5.565 14.2429 5.87284 14.552 6.06676C14.8612 6.26068 15.2342 6.32509 15.5904 6.24605ZM5.60362 11.8823C5.78593 11.8823 5.96645 11.8464 6.13488 11.7766C6.30331 11.7069 6.45635 11.6046 6.58526 11.4757C6.71417 11.3468 6.81642 11.1937 6.88619 11.0253C6.95595 10.8569 6.99186 10.6764 6.99186 10.4941C6.99186 10.3117 6.95595 10.1312 6.88619 9.9628C6.81642 9.79437 6.71417 9.64133 6.58526 9.51242C6.45635 9.38351 6.30331 9.28126 6.13488 9.21149C5.96645 9.14173 5.78593 9.10582 5.60362 9.10582C5.23544 9.10582 4.88234 9.25208 4.62199 9.51242C4.36165 9.77277 4.21539 10.1259 4.21539 10.4941C4.21539 10.8622 4.36165 11.2153 4.62199 11.4757C4.88234 11.736 5.23544 11.8823 5.60362 11.8823ZM6.58904 22.6493C6.71795 22.5204 6.82021 22.3674 6.88997 22.199C6.95974 22.0305 6.99565 21.85 6.99565 21.6677C6.99565 21.4854 6.95974 21.3049 6.88997 21.1364C6.82021 20.968 6.71795 20.815 6.58904 20.6861C6.46012 20.5571 6.30708 20.4549 6.13865 20.3851C5.97022 20.3154 5.7897 20.2794 5.60739 20.2794C5.42508 20.2794 5.24456 20.3154 5.07613 20.3851C4.90769 20.4549 4.75465 20.5571 4.62574 20.6861C4.36539 20.9464 4.21913 21.2995 4.21913 21.6677C4.21913 22.0359 4.36539 22.389 4.62574 22.6493C4.88609 22.9097 5.2392 23.056 5.60739 23.056C5.97558 23.056 6.32869 22.9097 6.58904 22.6493ZM15.5919 28.5983C15.7693 28.5564 15.9367 28.48 16.0846 28.3734C16.2324 28.2668 16.3579 28.1321 16.4537 27.977C16.5495 27.8219 16.6138 27.6495 16.643 27.4696C16.6722 27.2896 16.6656 27.1057 16.6237 26.9283C16.5818 26.7509 16.5054 26.5835 16.3988 26.4356C16.2922 26.2877 16.1575 26.1623 16.0025 26.0665C15.8474 25.9707 15.675 25.9063 15.495 25.8771C15.3151 25.848 15.1312 25.8545 14.9537 25.8964C14.7742 25.9362 14.6044 26.0113 14.4541 26.1174C14.3039 26.2234 14.1762 26.3582 14.0784 26.514C13.9807 26.6697 13.9149 26.8434 13.8849 27.0248C13.8548 27.2062 13.8611 27.3918 13.9034 27.5708C13.9456 27.7497 14.023 27.9185 14.1311 28.0673C14.2391 28.2162 14.3757 28.342 14.5328 28.4376C14.6898 28.5332 14.8644 28.5966 15.0462 28.6242C15.228 28.6518 15.4135 28.643 15.5919 28.5983ZM25.2848 22.9973C25.4634 22.9566 25.6322 22.881 25.7815 22.7747C25.9307 22.6684 26.0574 22.5337 26.1543 22.3782C26.2512 22.2227 26.3164 22.0496 26.3461 21.8688C26.3758 21.6881 26.3694 21.5032 26.3273 21.3249C26.2853 21.1466 26.2083 20.9784 26.1009 20.83C25.9935 20.6815 25.8578 20.5559 25.7015 20.4601C25.5453 20.3644 25.3717 20.3006 25.1907 20.2723C25.0097 20.244 24.8249 20.2518 24.6469 20.2952C24.291 20.3821 23.9839 20.6062 23.7925 20.9185C23.6011 21.2309 23.541 21.6063 23.6251 21.9628C23.7093 22.3193 23.931 22.6281 24.2419 22.8219C24.5528 23.0157 24.9276 23.0788 25.2848 22.9973ZM22.286 4.82347C22.7566 4.82347 23.133 4.447 23.133 3.97641C23.133 3.50582 22.7566 3.12935 22.286 3.12935C21.8154 3.12935 21.4389 3.50582 21.4389 3.97641C21.4389 4.447 21.8154 4.82347 22.286 4.82347ZM8.28598 4.82347C8.75657 4.82347 9.13304 4.447 9.13304 3.97641C9.13304 3.50582 8.75657 3.12935 8.28598 3.12935C7.81539 3.12935 7.43892 3.50582 7.43892 3.97641C7.43892 4.447 7.81539 4.82347 8.28598 4.82347ZM1.29774 15.2235C0.827154 15.2235 0.450684 15.5999 0.450684 16.0705C0.450684 16.5411 0.827154 16.9176 1.29774 16.9176C1.76833 16.9176 2.1448 16.5411 2.1448 16.0705C2.16833 15.5999 1.76833 15.2235 1.29774 15.2235ZM8.28598 27.3176C7.81539 27.3176 7.43892 27.6941 7.43892 28.1646C7.43892 28.6352 7.81539 29.0117 8.28598 29.0117C8.75657 29.0117 9.13304 28.6352 9.13304 28.1646C9.13304 27.6941 8.75657 27.3176 8.28598 27.3176ZM22.286 27.3411C21.8154 27.3411 21.4389 27.7176 21.4389 28.1882C21.4389 28.6588 21.8154 29.0352 22.286 29.0352C22.7566 29.0352 23.133 28.6588 23.133 28.1882C23.133 27.7176 22.7566 27.3411 22.286 27.3411ZM29.2742 15.2235C28.8036 15.2235 28.4272 15.5999 28.4272 16.0705C28.4272 16.5411 28.8036 16.9176 29.2742 16.9176C29.7448 16.9176 30.1213 16.5411 30.1213 16.0705C30.1213 15.5999 29.7448 15.2235 29.2742 15.2235ZM28.7566 8.6117C28.9448 8.6117 29.086 8.47053 29.086 8.28229C29.086 8.09405 28.9448 7.95288 28.7566 7.95288C28.5683 7.95288 28.4272 8.09405 28.4272 8.28229C28.4272 8.47053 28.5919 8.6117 28.7566 8.6117ZM15.2742 0.846995C15.4624 0.846995 15.6036 0.705819 15.6036 0.517583C15.6036 0.329348 15.4624 0.188171 15.2742 0.188171C15.086 0.188171 14.9448 0.329348 14.9448 0.517583C14.9448 0.705819 15.1095 0.846995 15.2742 0.846995ZM1.81539 8.6117C2.00362 8.6117 2.1448 8.47053 2.1448 8.28229C2.1448 8.09405 2.00362 7.95288 1.81539 7.95288C1.62715 7.95288 1.48598 8.09405 1.48598 8.28229C1.48598 8.47053 1.62715 8.6117 1.81539 8.6117ZM1.81539 23.5293C1.62715 23.5293 1.48598 23.6705 1.48598 23.8588C1.48598 24.047 1.62715 24.1882 1.81539 24.1882C2.00362 24.1882 2.1448 24.047 2.1448 23.8588C2.1448 23.6705 1.9801 23.5293 1.81539 23.5293ZM28.7801 23.5058C28.5919 23.5058 28.4507 23.647 28.4507 23.8352C28.4507 24.0235 28.5919 24.1646 28.7801 24.1646C28.9683 24.1646 29.1095 24.0235 29.1095 23.8352C29.1095 23.6705 28.9683 23.5058 28.7801 23.5058Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M19.8154 20.5882C18.8036 20.2588 17.7683 20.6823 17.2272 21.5293L17.2036 21.5764C16.686 22.447 15.6507 22.9176 14.6389 22.6117C14.0742 22.4235 13.6272 22.047 13.3448 21.5529C13.2977 21.4117 13.2742 21.2705 13.2742 21.1058C13.2272 20.1411 13.9801 19.3176 14.9448 19.2941H15.1801C16.9683 19.3646 18.4507 17.9764 18.5213 16.2117C18.5919 14.4235 17.2036 12.9411 15.4389 12.8705H14.9448C13.9801 12.8235 13.2977 12.0705 13.3448 11.1293C13.3448 10.8941 13.3919 10.6823 13.486 10.4705L13.5095 10.3999C13.5566 10.2823 13.5801 10.2352 13.6272 10.1176C14.0036 8.91758 13.3448 7.67052 12.1448 7.29405C10.9683 6.94111 9.69774 7.57641 9.32127 8.75288C8.9448 9.90582 9.5801 11.1529 10.733 11.5529C10.9213 11.6235 11.0389 11.647 11.2036 11.6705L11.2977 11.6941C12.2154 11.7882 12.9213 12.5176 12.8977 13.4588C12.8742 13.7882 12.7801 14.1176 12.5919 14.3764C12.286 14.847 12.1213 15.3882 12.0977 15.9764C12.0742 16.6588 12.2624 17.3176 12.5919 17.8352C12.7801 18.0941 12.8742 18.3999 12.8977 18.7529C12.9448 19.6941 12.3095 20.4235 11.3919 20.5176H11.3683C11.2272 20.5176 11.086 20.5411 10.9683 20.5646C9.72127 20.847 8.99186 22.0705 9.27421 23.2705C9.55657 24.4941 10.7801 25.2235 11.9566 24.9646C12.5919 24.8235 13.086 24.447 13.3919 23.9529C13.9095 23.0588 14.9919 22.6352 16.0272 22.9646C16.5919 23.1293 16.9683 23.4823 17.2507 23.9293L17.2742 23.9764C17.5095 24.3529 17.9566 24.7529 18.4977 24.9176C19.7213 25.2705 20.9213 24.6117 21.2977 23.4588C21.6742 22.2117 20.9683 20.9646 19.8154 20.5882ZM70.2625 16.2588C70.537 16.2588 70.8004 16.1497 70.9945 15.9555C71.1887 15.7614 71.2977 15.498 71.2977 15.2235C71.2977 14.9489 71.1887 14.6856 70.9945 14.4914C70.8004 14.2972 70.537 14.1882 70.2625 14.1882C69.9879 14.1882 69.7245 14.2972 69.5304 14.4914C69.3362 14.6856 69.2272 14.9489 69.2272 15.2235C69.2272 15.498 69.3362 15.7614 69.5304 15.9555C69.7245 16.1497 69.9879 16.2588 70.2625 16.2588ZM43.8624 15.5293C43.7213 15.4588 43.5095 15.2941 43.2036 15.1058C42.3801 14.5411 41.7448 14.1176 41.3448 13.8117H43.9095V12.5882H41.5095C41.5566 12.4705 41.5566 11.2941 41.5566 10.9646C41.5801 10.6823 41.6036 10.447 41.6036 10.2823H43.5095V9.05876H39.5801C39.7683 8.72935 39.9095 8.37641 40.0272 7.95288L38.7095 7.83523C38.3801 8.89405 37.8154 9.8117 37.0154 10.5882C37.3448 10.9176 37.533 11.1293 37.6036 11.2705C37.7213 11.3882 37.7919 11.5058 37.886 11.5764C38.333 11.1293 38.6624 10.7058 38.9213 10.2823H40.2389C40.2389 10.7764 40.1919 12.1646 40.1213 12.5646H37.133V13.7882H39.8625C39.5095 14.6352 38.5448 15.3882 37.0389 15.9999C37.3213 16.3999 37.6036 16.8235 37.8625 17.2941C38.1448 17.0823 38.4507 16.9176 38.733 16.7999V23.5293H40.1448V22.847H47.0625V23.5293H48.5213V16.7529H43.086L43.8624 15.5293ZM38.8036 16.7293C39.7919 16.1176 40.4272 15.4823 40.7566 14.847C40.8977 14.9176 41.086 15.0823 41.2977 15.2705C42.0507 15.8823 42.6625 16.3764 43.086 16.7293H38.8036ZM47.0625 21.7646H40.1448V20.4235H47.0625V21.7646ZM47.0625 19.3176H40.1448V18.0235H47.0625V19.3176Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M44.4507 15.6941H49.5095V8.94111H44.4507V15.6941ZM45.7683 10.3058H48.2154V14.4235H45.7683V10.3058ZM54.4742 11.3882L55.7213 10.5411C55.0389 9.55288 54.4507 8.79994 53.9801 8.2117L52.8977 8.94111C53.0389 9.17641 53.2507 9.52935 53.5566 9.97641C54.0036 10.6352 54.3095 11.1058 54.4742 11.3882ZM64.0272 13.9764C64.1448 13.8588 64.286 13.647 64.4742 13.3646C64.8742 12.847 65.1566 12.447 65.2977 12.2117L64.3095 11.5293C64.0977 11.9058 63.6742 12.4705 63.0625 13.247L64.0272 13.9764ZM58.4507 13.247C58.3095 13.0352 58.0977 12.7529 57.7919 12.3999C57.5095 11.9999 57.2742 11.7176 57.133 11.5529L56.2154 12.2352C56.7566 12.9646 57.1801 13.5529 57.4624 13.9999L58.4507 13.247ZM55.2977 20.2823C55.1801 20.3999 55.1095 20.4941 55.086 20.5176V13.9293H52.5213V15.4588H53.6742V20.8941C53.6742 21.4352 53.5566 21.8117 53.2977 22.047L54.1683 23.3882C54.686 22.7058 55.4624 21.8823 56.4977 20.9411C56.3801 20.2117 56.3095 19.647 56.2154 19.2235C56.0507 19.4823 55.7448 19.8352 55.2977 20.2823ZM54.1683 23.4117V23.3882L54.1448 23.4117H54.1683ZM57.0389 23.5764H58.4036V22.9646H63.0389V23.5764H64.4507V17.0352H57.0389V23.5764ZM58.4036 18.2588H63.0389V19.5529H58.4036V18.2588ZM58.4036 20.5882H63.0389V21.8117H58.4036V20.5882Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"d"
:
"M65.3213 10.7999V9.647H62.9213C63.2742 9.08229 63.5095 8.72935 63.5801 8.6117C63.6977 8.39994 63.7683 8.25876 63.8625 8.18817L62.4977 7.88229C62.1683 8.49405 61.8154 9.08229 61.4154 9.647H60.0977C59.9566 9.4117 59.7213 9.03523 59.3919 8.54111C59.2036 8.25876 59.0625 8.02347 58.9448 7.85876L57.6272 8.16464C57.8154 8.39994 58.1213 8.89405 58.5448 9.62347H56.2625V10.7764H58.8272V14.7764H55.7683V15.9293H65.6742V14.7764H62.5213V10.7999H65.3213ZM61.3448 14.7764H60.0977V10.7764H61.3448V14.7764Z"
,
"fill"
:
"#3859FF"
},
"children"
:
[]
}
]
}
]
},
"name"
:
"ZhipuaiTextCn"
}
\ No newline at end of file
web/app/components/base/icons/src/public/llm/ZhipuaiTextCn.tsx
0 → 100644
View file @
60e0bbd7
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./ZhipuaiTextCn.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
const
Icon
=
React
.
forwardRef
<
React
.
MutableRefObject
<
SVGElement
>
,
Omit
<
IconBaseProps
,
'data'
>>
((
props
,
ref
,
)
=>
<
IconBase
{
...
props
}
ref=
{
ref
}
data=
{
data
as
IconData
}
/>)
Icon
.
displayName
=
'ZhipuaiTextCn'
export
default
Icon
web/app/components/base/icons/src/public/llm/index.ts
View file @
60e0bbd7
...
...
@@ -29,3 +29,6 @@ export { default as ReplicateText } from './ReplicateText'
export
{
default
as
Replicate
}
from
'./Replicate'
export
{
default
as
XorbitsInferenceText
}
from
'./XorbitsInferenceText'
export
{
default
as
XorbitsInference
}
from
'./XorbitsInference'
export
{
default
as
ZhipuaiTextCn
}
from
'./ZhipuaiTextCn'
export
{
default
as
ZhipuaiText
}
from
'./ZhipuaiText'
export
{
default
as
Zhipuai
}
from
'./Zhipuai'
web/app/components/header/account-setting/model-page/configs/index.ts
View file @
60e0bbd7
...
...
@@ -11,6 +11,7 @@ import chatglm from './chatglm'
import
xinference
from
'./xinference'
import
openllm
from
'./openllm'
import
localai
from
'./localai'
import
zhipuai
from
'./zhipuai'
export
default
{
openai
,
...
...
@@ -26,4 +27,5 @@ export default {
xinference
,
openllm
,
localai
,
zhipuai
,
}
web/app/components/header/account-setting/model-page/configs/zhipuai.tsx
0 → 100644
View file @
60e0bbd7
import
{
ProviderEnum
}
from
'../declarations'
import
type
{
ProviderConfig
}
from
'../declarations'
import
{
Zhipuai
,
ZhipuaiText
,
ZhipuaiTextCn
}
from
'@/app/components/base/icons/src/public/llm'
const
config
:
ProviderConfig
=
{
selector
:
{
name
:
{
'en'
:
'ZHIPU AI'
,
'zh-Hans'
:
'智谱 AI'
,
},
icon
:
<
Zhipuai
className=
'w-full h-full'
/>,
},
item
:
{
key
:
ProviderEnum
.
zhipuai
,
titleIcon
:
{
'en'
:
<
ZhipuaiText
className
=
'-ml-1 h-7'
/>
,
'zh-Hans'
:
<
ZhipuaiTextCn
className
=
'h-8'
/>
,
},
},
modal
:
{
key
:
ProviderEnum
.
zhipuai
,
title
:
{
'en'
:
'ZHIPU AI'
,
'zh-Hans'
:
'智谱 AI'
,
},
icon
:
<
Zhipuai
className=
'w-6 h-6'
/>,
link
:
{
href
:
'https://open.bigmodel.cn/usercenter/apikeys'
,
label
:
{
'en'
:
'Get your API key from ZHIPU AI'
,
'zh-Hans'
:
'从智谱 AI 获取 API Key'
,
},
},
validateKeys
:
[
'api_key'
,
],
fields
:
[
{
type
:
'text'
,
key
:
'api_key'
,
required
:
true
,
label
:
{
'en'
:
'APIKey'
,
'zh-Hans'
:
'APIKey'
,
},
placeholder
:
{
'en'
:
'Enter your APIKey here'
,
'zh-Hans'
:
'在此输入您的 APIKey'
,
},
},
],
},
}
export
default
config
web/app/components/header/account-setting/model-page/declarations.ts
View file @
60e0bbd7
...
...
@@ -42,6 +42,7 @@ export enum ProviderEnum {
'xinference'
=
'xinference'
,
'openllm'
=
'openllm'
,
'localai'
=
'localai'
,
'zhipuai'
=
'zhipuai'
,
}
export
type
ProviderConfigItem
=
{
...
...
web/app/components/header/account-setting/model-page/index.tsx
View file @
60e0bbd7
...
...
@@ -78,8 +78,9 @@ const ModelPage = () => {
config
.
azure_openai
,
config
.
replicate
,
config
.
huggingface_hub
,
config
.
minimax
,
config
.
zhipuai
,
config
.
spark
,
config
.
minimax
,
config
.
tongyi
,
config
.
wenxin
,
config
.
chatglm
,
...
...
@@ -91,8 +92,9 @@ const ModelPage = () => {
else
{
modelList
=
[
config
.
huggingface_hub
,
config
.
minimax
,
config
.
zhipuai
,
config
.
spark
,
config
.
minimax
,
config
.
azure_openai
,
config
.
replicate
,
config
.
tongyi
,
...
...
web/app/components/header/account-setting/model-page/model-item/FreeQuota.tsx
View file @
60e0bbd7
...
...
@@ -19,6 +19,10 @@ const TIP_MAP: { [k: string]: TypeWithI18N } = {
'en'
:
'Earn 3 million tokens for free'
,
'zh-Hans'
:
'免费获取 300 万个 token'
,
},
[
ProviderEnumValue
.
zhipuai
]:
{
'en'
:
'Earn 10 million tokens for free'
,
'zh-Hans'
:
'免费获取 1000 万个 token'
,
},
}
type
FreeQuotaProps
=
{
modelItem
:
ProviderConfigItem
...
...
web/app/components/header/account-setting/model-page/model-item/Setting.tsx
View file @
60e0bbd7
...
...
@@ -34,7 +34,7 @@ const Setting: FC<SettingProps> = ({
return
(
<
div
className=
'flex items-center'
>
{
(
modelItem
.
key
===
ProviderEnum
.
minimax
||
modelItem
.
key
===
ProviderEnum
.
spark
)
&&
systemFree
&&
!
systemFree
?.
is_valid
&&
!
IS_CE_EDITION
&&
locale
===
'zh-Hans'
&&
(
(
modelItem
.
key
===
ProviderEnum
.
minimax
||
modelItem
.
key
===
ProviderEnum
.
spark
||
modelItem
.
key
===
ProviderEnum
.
zhipuai
)
&&
systemFree
&&
!
systemFree
?.
is_valid
&&
!
IS_CE_EDITION
&&
locale
===
'zh-Hans'
&&
(
<
FreeQuota
modelItem=
{
modelItem
}
onUpdate=
{
onUpdate
}
...
...
web/hooks/use-pay.ts
→
web/hooks/use-pay.ts
x
View file @
60e0bbd7
'use client'
import
{
useEffect
,
useState
}
from
'react'
import
{
useCallback
,
useEffect
,
useState
}
from
'react'
import
{
useRouter
,
useSearchParams
}
from
'next/navigation'
import
{
useTranslation
}
from
'react-i18next'
import
useSWR
from
'swr'
import
{
useSearchParams
}
from
'next/navigation'
import
{
useContext
}
from
'use-context-selector'
import
I18n
from
'@/context/i18n'
import
{
ProviderEnum
}
from
'@/app/components/header/account-setting/model-page/declarations'
import
{
fetch
Spark
FreeQuotaVerify
}
from
'@/service/common'
import
{
fetchFreeQuotaVerify
}
from
'@/service/common'
import
type
{
ConfirmCommonProps
}
from
'@/app/components/base/confirm/common'
import
Confirm
from
'@/app/components/base/confirm/common'
export
type
ConfirmType
=
Pick
<
ConfirmCommonProps
,
'type'
|
'title'
|
'desc'
>
...
...
@@ -32,40 +33,92 @@ export const useAnthropicCheckPay = () => {
}
const
QUOTA_RECEIVE_STATUS
=
{
success
:
{
'en'
:
'Anthropic'
,
'zh-Hans'
:
'领取成功,将在 5 分钟后自动增加配额'
,
[
ProviderEnum
.
spark
]:
{
success
:
{
'en'
:
'Successful collection, the quota will be automatically increased after 5 minutes.'
,
'zh-Hans'
:
'领取成功,将在 5 分钟后自动增加配额'
,
},
fail
:
{
'en'
:
'Failure to collect'
,
'zh-Hans'
:
'领取失败'
,
},
},
fail
:
{
'en'
:
'Anthropic'
,
'zh-Hans'
:
'领取失败'
,
[
ProviderEnum
.
zhipuai
]:
{
success
:
{
'en'
:
'Successful collection'
,
'zh-Hans'
:
'领取成功'
,
},
fail
:
{
'en'
:
'Failure to collect'
,
'zh-Hans'
:
'领取失败'
,
},
},
}
export
const
useSparkCheckQuota
=
()
=>
{
const
FREE_CHECK_PROVIDER
=
[
ProviderEnum
.
spark
,
ProviderEnum
.
zhipuai
]
export
const
useCheckFreeQuota
=
()
=>
{
const
{
locale
}
=
useContext
(
I18n
)
const
router
=
useRouter
()
const
[
shouldVerify
,
setShouldVerify
]
=
useState
(
false
)
const
{
data
}
=
useSWR
(
shouldVerify
?
`/workspaces/current/model-providers/
${
ProviderEnum
.
spark
}
/free-quota-qualification-verify`
:
null
,
fetchSparkFreeQuotaVerify
,
)
const
searchParams
=
useSearchParams
()
const
type
=
searchParams
.
get
(
'type'
)
const
provider
=
searchParams
.
get
(
'provider'
)
const
provider
=
searchParams
.
get
(
'provider'
)
as
(
ProviderEnum
.
spark
|
ProviderEnum
.
zhipuai
)
const
result
=
searchParams
.
get
(
'result'
)
const
token
=
searchParams
.
get
(
'token'
)
const
{
data
,
error
}
=
useSWR
(
shouldVerify
?
`/workspaces/current/model-providers/
${
provider
}
/free-quota-qualification-verify?token=
${
token
}
`
:
null
,
fetchFreeQuotaVerify
,
)
useEffect
(()
=>
{
if
(
error
)
router
.
replace
(
'/'
,
{
forceOptimisticNavigation
:
false
})
},
[
error
,
router
])
useEffect
(()
=>
{
if
(
type
===
'provider_apply_callback'
&&
provider
===
ProviderEnum
.
spark
&&
result
===
'success'
)
if
(
type
===
'provider_apply_callback'
&&
FREE_CHECK_PROVIDER
.
includes
(
provider
)
&&
result
===
'success'
)
setShouldVerify
(
true
)
},
[
type
,
provider
,
result
])
return
data
return
(
data
&&
provider
)
?
{
type
:
data
.
flag
?
'success'
:
'danger'
,
title
:
data
.
flag
?
QUOTA_RECEIVE_STATUS
.
success
[
locale
]
:
QUOTA_RECEIVE_STATUS
.
fail
[
locale
],
title
:
data
.
flag
?
QUOTA_RECEIVE_STATUS
[
provider
].
success
[
locale
]
:
QUOTA_RECEIVE_STATUS
[
provider
]
.
fail
[
locale
],
desc
:
!
data
.
flag
?
data
.
reason
:
undefined
,
}
:
null
}
export
const
CheckModal
=
()
=>
{
const
router
=
useRouter
()
const
{
t
}
=
useTranslation
()
const
[
showPayStatusModal
,
setShowPayStatusModal
]
=
useState
(
true
)
const
anthropicConfirmInfo
=
useAnthropicCheckPay
()
const
freeQuotaConfirmInfo
=
useCheckFreeQuota
()
const
handleCancelShowPayStatusModal
=
useCallback
(()
=>
{
setShowPayStatusModal
(
false
)
router
.
replace
(
'/'
,
{
forceOptimisticNavigation
:
false
})
},
[
router
])
const
confirmInfo
=
anthropicConfirmInfo
||
freeQuotaConfirmInfo
if
(
!
confirmInfo
||
!
showPayStatusModal
)
return
null
return
(
<
Confirm
isShow
onCancel=
{
handleCancelShowPayStatusModal
}
onConfirm=
{
handleCancelShowPayStatusModal
}
type=
{
confirmInfo
.
type
}
title=
{
confirmInfo
.
title
}
desc=
{
confirmInfo
.
desc
}
showOperateCancel=
{
false
}
confirmText=
{
(
confirmInfo
.
type
===
'danger'
&&
t
(
'common.operation.ok'
))
||
''
}
/>
)
}
web/service/common.ts
View file @
60e0bbd7
...
...
@@ -185,6 +185,6 @@ export const fetchDocumentsLimit: Fetcher<DocumentsLimitResponse, string> = (url
return
get
<
DocumentsLimitResponse
>
(
url
)
}
export
const
fetch
Spark
FreeQuotaVerify
:
Fetcher
<
{
result
:
string
;
flag
:
boolean
;
reason
:
string
},
string
>
=
(
url
)
=>
{
export
const
fetchFreeQuotaVerify
:
Fetcher
<
{
result
:
string
;
flag
:
boolean
;
reason
:
string
},
string
>
=
(
url
)
=>
{
return
get
(
url
)
as
Promise
<
{
result
:
string
;
flag
:
boolean
;
reason
:
string
}
>
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment