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
215a27fd
Unverified
Commit
215a27fd
authored
Aug 22, 2023
by
zxhlyh
Committed by
GitHub
Aug 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat/add xinference openllm provider (#958)
parent
5cba2e70
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1119 additions
and
3 deletions
+1119
-3
openllm-text.svg
.../components/base/icons/assets/public/llm/openllm-text.svg
+19
-0
openllm.svg
web/app/components/base/icons/assets/public/llm/openllm.svg
+12
-0
xorbits-inference-text.svg
...s/base/icons/assets/public/llm/xorbits-inference-text.svg
+42
-0
xorbits-inference.svg
...onents/base/icons/assets/public/llm/xorbits-inference.svg
+24
-0
Openllm.json
web/app/components/base/icons/src/public/llm/Openllm.json
+83
-0
Openllm.tsx
web/app/components/base/icons/src/public/llm/Openllm.tsx
+14
-0
OpenllmText.json
...app/components/base/icons/src/public/llm/OpenllmText.json
+143
-0
OpenllmText.tsx
web/app/components/base/icons/src/public/llm/OpenllmText.tsx
+14
-0
XorbitsInference.json
...omponents/base/icons/src/public/llm/XorbitsInference.json
+176
-0
XorbitsInference.tsx
...components/base/icons/src/public/llm/XorbitsInference.tsx
+14
-0
XorbitsInferenceText.json
...nents/base/icons/src/public/llm/XorbitsInferenceText.json
+329
-0
XorbitsInferenceText.tsx
...onents/base/icons/src/public/llm/XorbitsInferenceText.tsx
+14
-0
index.ts
web/app/components/base/icons/src/public/llm/index.ts
+4
-0
DotsHorizontal.json
...ts/base/icons/src/vender/line/general/DotsHorizontal.json
+1
-1
index.ts
...onents/header/account-setting/model-page/configs/index.ts
+4
-0
openllm.tsx
...nts/header/account-setting/model-page/configs/openllm.tsx
+89
-0
xinference.tsx
.../header/account-setting/model-page/configs/xinference.tsx
+128
-0
declarations.ts
...ponents/header/account-setting/model-page/declarations.ts
+2
-0
index.tsx
...pp/components/header/account-setting/model-page/index.tsx
+4
-0
Setting.tsx
.../header/account-setting/model-page/model-item/Setting.tsx
+2
-1
utils.ts
...app/components/header/account-setting/model-page/utils.ts
+1
-1
No files found.
web/app/components/base/icons/assets/public/llm/openllm-text.svg
0 → 100644
View file @
215a27fd
This diff is collapsed.
Click to expand it.
web/app/components/base/icons/assets/public/llm/openllm.svg
0 → 100644
View file @
215a27fd
<svg
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"Camada_2"
clip-path=
"url(#clip0_9866_5923)"
>
<path
id=
"Vector"
d=
"M23.9181 1.27026C23.8737 1.12859 23.813 0.994621 23.7379 0.871257C23.6473 0.721871 23.5355 0.586942 23.4073 0.470325C23.3861 0.451049 23.3639 0.431773 23.3417 0.413462C23.1856 0.284315 23.0073 0.181191 22.8136 0.109871C22.6199 0.0385512 22.4107 0 22.1929 0H5.99952C5.96289 0 5.92627 0.00192756 5.88965 0.00385512C5.87905 0.00385512 5.86748 0.00578268 5.85688 0.00674646C5.83086 0.00867402 5.80387 0.0115654 5.77785 0.0144567C5.76628 0.0154205 5.75568 0.017348 5.74508 0.0183118C5.71424 0.0231307 5.6834 0.0279496 5.65256 0.0337323C5.64774 0.0337323 5.64388 0.0356599 5.63906 0.0356599C5.60437 0.0424063 5.56967 0.0510803 5.53594 0.0597543C5.5263 0.0626457 5.51666 0.065537 5.50703 0.0674646C5.48197 0.074211 5.45691 0.0819213 5.43185 0.0905953C5.42125 0.0944504 5.41065 0.0973418 5.40101 0.101197C5.37403 0.110835 5.34704 0.120472 5.32102 0.132038C5.31524 0.134929 5.30849 0.136857 5.30271 0.139748C5.2709 0.153241 5.2391 0.167698 5.20729 0.183118C5.19958 0.186973 5.19187 0.190828 5.18416 0.194684C5.16007 0.207213 5.13694 0.219742 5.11381 0.232271C5.10417 0.23709 5.09549 0.242873 5.08586 0.247691C5.06273 0.261184 5.0396 0.275641 5.01646 0.291062C5.00972 0.294917 5.00297 0.299736 4.99719 0.303591C4.96828 0.322866 4.94033 0.343106 4.91238 0.363345C4.90659 0.3672 4.90177 0.372019 4.89696 0.375874C4.87479 0.393222 4.85262 0.41057 4.83142 0.428882C4.82371 0.435628 4.816 0.442375 4.80829 0.449121C4.78805 0.466469 4.76877 0.484781 4.7495 0.503093C4.74372 0.508876 4.73697 0.514658 4.73119 0.520441C4.72058 0.531043 4.70998 0.541644 4.70035 0.552246C4.70035 0.552246 4.70035 0.551282 4.70131 0.550318L0.450084 4.37942C0.161915 4.66759 0 5.05792 0 5.4656V22.5592C0 23.4073 0.687174 24.0955 1.53626 24.0955H18.6298C19.0375 24.0955 19.4278 23.9335 19.716 23.6454L23.5383 19.2072C23.6077 19.1291 23.6714 19.0453 23.7263 18.9566C23.7282 18.9537 23.7301 18.9498 23.7321 18.9469C23.7427 18.9296 23.7523 18.9123 23.7629 18.8949C23.7668 18.8882 23.7706 18.8814 23.7745 18.8747C23.7831 18.8583 23.7918 18.8429 23.8005 18.8265C23.8053 18.8178 23.8101 18.8091 23.814 18.7995C23.8217 18.7841 23.8284 18.7686 23.8362 18.7532C23.841 18.7426 23.8458 18.733 23.8497 18.7224C23.8564 18.7079 23.8622 18.6925 23.8689 18.6771C23.8737 18.6655 23.8786 18.654 23.8824 18.6424C23.8882 18.6279 23.893 18.6135 23.8988 18.5981C23.9036 18.5855 23.9075 18.573 23.9113 18.5605C23.9162 18.546 23.921 18.5316 23.9248 18.5171C23.9287 18.5036 23.9325 18.4901 23.9364 18.4766C23.9402 18.4631 23.9441 18.4487 23.947 18.4342C23.9508 18.4198 23.9537 18.4053 23.9566 18.3908C23.9595 18.3774 23.9624 18.3639 23.9653 18.3504C23.9682 18.3349 23.9711 18.3195 23.974 18.3041C23.9759 18.2906 23.9788 18.2781 23.9807 18.2646C23.9836 18.2482 23.9855 18.2309 23.9875 18.2145C23.9894 18.2019 23.9904 18.1904 23.9923 18.1779C23.9942 18.1586 23.9952 18.1393 23.9971 18.12C23.9971 18.1094 23.999 18.0998 23.999 18.0892C24.001 18.0593 24.001 18.0294 24.001 17.9996V1.80709C24.001 1.62011 23.972 1.43989 23.92 1.27026H23.9181ZM22.1929 0.541644C22.4107 0.541644 22.616 0.597543 22.7953 0.694885C22.8849 0.744038 22.9678 0.802829 23.043 0.871257C23.0584 0.88475 23.0728 0.899207 23.0873 0.9127C23.1162 0.941613 23.1432 0.97149 23.1692 1.00233C23.1952 1.03317 23.2193 1.06594 23.2425 1.09967C23.3793 1.30207 23.4584 1.54494 23.4584 1.80612V17.9996C23.4584 18.0362 23.4564 18.0718 23.4535 18.1075C23.4535 18.1114 23.4535 18.1162 23.4535 18.12C23.4506 18.1538 23.4458 18.1875 23.44 18.2203C23.44 18.2251 23.4381 18.2299 23.4372 18.2357C23.4304 18.2684 23.4237 18.3012 23.415 18.333C23.414 18.3369 23.4131 18.3407 23.4121 18.3446C23.4025 18.3783 23.3919 18.4111 23.3803 18.4429C23.3803 18.4439 23.3803 18.4448 23.3793 18.4458C23.3408 18.5489 23.2887 18.6443 23.2251 18.733V18.7349C23.203 18.7638 23.1808 18.7927 23.1577 18.8197C23.1432 18.8361 23.1287 18.8525 23.1133 18.8689C23.1133 18.8689 23.1133 18.8689 23.1124 18.8698C23.0979 18.8853 23.0825 18.9007 23.0671 18.9151C23.0671 18.9151 23.0661 18.9161 23.0651 18.9171C23.0497 18.9315 23.0333 18.946 23.0169 18.9604C23.0169 18.9604 23.0169 18.9604 23.016 18.9614C22.9312 19.0337 22.8377 19.0944 22.7355 19.1426C22.7336 19.1436 22.7317 19.1445 22.7288 19.1455C22.7114 19.1532 22.6941 19.1609 22.6758 19.1686C22.6709 19.1705 22.6661 19.1725 22.6613 19.1744C22.6459 19.1802 22.6305 19.186 22.615 19.1917C22.6083 19.1937 22.6025 19.1956 22.5958 19.1985C22.5813 19.2033 22.5669 19.2081 22.5524 19.212C22.5447 19.2139 22.5379 19.2158 22.5302 19.2178C22.5167 19.2216 22.5023 19.2255 22.4888 19.2284C22.4811 19.2303 22.4734 19.2322 22.4657 19.2342C22.4522 19.237 22.4377 19.2399 22.4242 19.2428C22.4165 19.2448 22.4078 19.2457 22.4001 19.2476C22.3857 19.2496 22.3712 19.2515 22.3568 19.2534C22.349 19.2544 22.3413 19.2554 22.3327 19.2563C22.3172 19.2582 22.3009 19.2592 22.2845 19.2602C22.2777 19.2602 22.271 19.2611 22.2642 19.2621C22.2411 19.2631 22.2189 19.264 22.1958 19.264H5.99952C5.65063 19.264 5.33451 19.1224 5.10513 18.893C5.04827 18.8361 4.99622 18.7735 4.95093 18.706C4.8372 18.5373 4.76299 18.3407 4.74082 18.1287C4.73697 18.0863 4.73408 18.0429 4.73408 17.9996V1.80709C4.73408 1.78299 4.73408 1.75986 4.736 1.73673C4.736 1.72902 4.73697 1.72227 4.73793 1.71456C4.7389 1.69818 4.74082 1.68276 4.74179 1.66638C4.74179 1.6577 4.74372 1.64999 4.74468 1.64132C4.74661 1.62686 4.74853 1.61144 4.75143 1.59698C4.75239 1.58831 4.75432 1.5806 4.75624 1.57192C4.75914 1.55747 4.76203 1.54205 4.76588 1.52759C4.76781 1.51988 4.76974 1.51217 4.7707 1.50446C4.77456 1.48808 4.77938 1.47169 4.78419 1.45531C4.78612 1.44952 4.78709 1.44374 4.78901 1.43892C4.80251 1.39459 4.81889 1.35122 4.83624 1.30881C4.83624 1.30881 4.83624 1.30689 4.8372 1.30689C4.84588 1.28665 4.85551 1.26641 4.86515 1.24713C4.86708 1.24424 4.86804 1.24038 4.86997 1.23749C4.87864 1.22015 4.88828 1.2028 4.89792 1.18641C4.89985 1.18256 4.90177 1.17967 4.9037 1.17678C4.91334 1.15943 4.92394 1.14304 4.93454 1.12666C4.93647 1.12377 4.93743 1.12184 4.93936 1.11895C4.95189 1.10064 4.96442 1.08232 4.97695 1.06401C5.04634 0.969563 5.12826 0.883786 5.22079 0.811503C5.30078 0.748857 5.38752 0.695849 5.48101 0.654406C5.48293 0.654406 5.48486 0.652479 5.48679 0.651515C5.51666 0.638022 5.54751 0.626457 5.57835 0.614892C5.58027 0.614892 5.58317 0.612964 5.58509 0.612964C5.64678 0.591761 5.71038 0.575377 5.77496 0.562847C5.77978 0.562847 5.7846 0.56092 5.79038 0.559956C5.82122 0.555137 5.85206 0.551282 5.88386 0.548391C5.88965 0.548391 5.89543 0.548391 5.90025 0.547427C5.93302 0.544536 5.96579 0.543572 5.99855 0.543572H22.192L22.1929 0.541644Z"
fill=
"black"
/>
<path
id=
"Vector_2"
d=
"M16.2794 11.0016C16.8867 11.0016 17.379 10.5093 17.379 9.90192C17.379 9.29459 16.8867 8.80225 16.2794 8.80225C15.672 8.80225 15.1797 9.29459 15.1797 9.90192C15.1797 10.5093 15.672 11.0016 16.2794 11.0016Z"
fill=
"black"
/>
<path
id=
"Vector_3"
d=
"M11.9219 11.0016C12.5293 11.0016 13.0216 10.5093 13.0216 9.90192C13.0216 9.29459 12.5293 8.80225 11.9219 8.80225C11.3146 8.80225 10.8223 9.29459 10.8223 9.90192C10.8223 10.5093 11.3146 11.0016 11.9219 11.0016Z"
fill=
"black"
/>
</g>
<defs>
<clipPath
id=
"clip0_9866_5923"
>
<rect
width=
"24"
height=
"24.0945"
fill=
"white"
/>
</clipPath>
</defs>
</svg>
web/app/components/base/icons/assets/public/llm/xorbits-inference-text.svg
0 → 100644
View file @
215a27fd
This diff is collapsed.
Click to expand it.
web/app/components/base/icons/assets/public/llm/xorbits-inference.svg
0 → 100644
View file @
215a27fd
<svg
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"Xorbits Square"
clip-path=
"url(#clip0_9850_26870)"
>
<path
id=
"Vector"
d=
"M8.00391 12.3124C8.69334 13.0754 9.47526 13.7494 10.3316 14.3188C11.0667 14.8105 11.8509 15.2245 12.6716 15.5541C14.1617 14.1465 15.3959 12.4907 16.3192 10.6606L21.7051 0L12.3133 7.38353C10.5832 8.74456 9.12178 10.416 8.00391 12.3124Z"
fill=
"url(#paint0_linear_9850_26870)"
/>
<path
id=
"Vector_2"
d=
"M7.23504 18.9512C6.56092 18.5012 5.92386 18.0265 5.3221 17.5394L2.06445 24L7.91975 19.3959C7.69034 19.2494 7.46092 19.103 7.23504 18.9512Z"
fill=
"url(#paint1_linear_9850_26870)"
/>
<path
id=
"Vector_3"
d=
"M19.3161 8.57474C21.0808 10.9147 21.5961 13.5159 20.3996 15.3053C18.6526 17.9189 13.9161 17.8183 9.82024 15.0812C5.72435 12.3441 3.82024 8.0065 5.56729 5.39297C6.76377 3.60356 9.36318 3.0865 12.2008 3.81886C7.29318 1.73474 2.62376 1.94121 0.813177 4.64474C-1.45976 8.04709 1.64435 14.1177 7.74494 18.1889C13.8455 22.26 20.6361 22.8124 22.9091 19.4118C24.7179 16.703 23.1173 12.3106 19.3161 8.57474Z"
fill=
"url(#paint2_linear_9850_26870)"
/>
</g>
<defs>
<linearGradient
id=
"paint0_linear_9850_26870"
x1=
"2.15214"
y1=
"24.3018"
x2=
"21.2921"
y2=
"0.0988218"
gradientUnits=
"userSpaceOnUse"
>
<stop
stop-color=
"#E9A85E"
/>
<stop
offset=
"1"
stop-color=
"#F52B76"
/>
</linearGradient>
<linearGradient
id=
"paint1_linear_9850_26870"
x1=
"2.06269"
y1=
"24.2294"
x2=
"21.2027"
y2=
"0.028252"
gradientUnits=
"userSpaceOnUse"
>
<stop
stop-color=
"#E9A85E"
/>
<stop
offset=
"1"
stop-color=
"#F52B76"
/>
</linearGradient>
<linearGradient
id=
"paint2_linear_9850_26870"
x1=
"-0.613606"
y1=
"3.843"
x2=
"21.4449"
y2=
"18.7258"
gradientUnits=
"userSpaceOnUse"
>
<stop
stop-color=
"#6A0CF5"
/>
<stop
offset=
"1"
stop-color=
"#AB66F3"
/>
</linearGradient>
<clipPath
id=
"clip0_9850_26870"
>
<rect
width=
"24"
height=
"24"
fill=
"white"
/>
</clipPath>
</defs>
</svg>
web/app/components/base/icons/src/public/llm/Openllm.json
0 → 100644
View file @
215a27fd
{
"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"
:
"Camada_2"
,
"clip-path"
:
"url(#clip0_9866_5923)"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector"
,
"d"
:
"M23.9181 1.27026C23.8737 1.12859 23.813 0.994621 23.7379 0.871257C23.6473 0.721871 23.5355 0.586942 23.4073 0.470325C23.3861 0.451049 23.3639 0.431773 23.3417 0.413462C23.1856 0.284315 23.0073 0.181191 22.8136 0.109871C22.6199 0.0385512 22.4107 0 22.1929 0H5.99952C5.96289 0 5.92627 0.00192756 5.88965 0.00385512C5.87905 0.00385512 5.86748 0.00578268 5.85688 0.00674646C5.83086 0.00867402 5.80387 0.0115654 5.77785 0.0144567C5.76628 0.0154205 5.75568 0.017348 5.74508 0.0183118C5.71424 0.0231307 5.6834 0.0279496 5.65256 0.0337323C5.64774 0.0337323 5.64388 0.0356599 5.63906 0.0356599C5.60437 0.0424063 5.56967 0.0510803 5.53594 0.0597543C5.5263 0.0626457 5.51666 0.065537 5.50703 0.0674646C5.48197 0.074211 5.45691 0.0819213 5.43185 0.0905953C5.42125 0.0944504 5.41065 0.0973418 5.40101 0.101197C5.37403 0.110835 5.34704 0.120472 5.32102 0.132038C5.31524 0.134929 5.30849 0.136857 5.30271 0.139748C5.2709 0.153241 5.2391 0.167698 5.20729 0.183118C5.19958 0.186973 5.19187 0.190828 5.18416 0.194684C5.16007 0.207213 5.13694 0.219742 5.11381 0.232271C5.10417 0.23709 5.09549 0.242873 5.08586 0.247691C5.06273 0.261184 5.0396 0.275641 5.01646 0.291062C5.00972 0.294917 5.00297 0.299736 4.99719 0.303591C4.96828 0.322866 4.94033 0.343106 4.91238 0.363345C4.90659 0.3672 4.90177 0.372019 4.89696 0.375874C4.87479 0.393222 4.85262 0.41057 4.83142 0.428882C4.82371 0.435628 4.816 0.442375 4.80829 0.449121C4.78805 0.466469 4.76877 0.484781 4.7495 0.503093C4.74372 0.508876 4.73697 0.514658 4.73119 0.520441C4.72058 0.531043 4.70998 0.541644 4.70035 0.552246C4.70035 0.552246 4.70035 0.551282 4.70131 0.550318L0.450084 4.37942C0.161915 4.66759 0 5.05792 0 5.4656V22.5592C0 23.4073 0.687174 24.0955 1.53626 24.0955H18.6298C19.0375 24.0955 19.4278 23.9335 19.716 23.6454L23.5383 19.2072C23.6077 19.1291 23.6714 19.0453 23.7263 18.9566C23.7282 18.9537 23.7301 18.9498 23.7321 18.9469C23.7427 18.9296 23.7523 18.9123 23.7629 18.8949C23.7668 18.8882 23.7706 18.8814 23.7745 18.8747C23.7831 18.8583 23.7918 18.8429 23.8005 18.8265C23.8053 18.8178 23.8101 18.8091 23.814 18.7995C23.8217 18.7841 23.8284 18.7686 23.8362 18.7532C23.841 18.7426 23.8458 18.733 23.8497 18.7224C23.8564 18.7079 23.8622 18.6925 23.8689 18.6771C23.8737 18.6655 23.8786 18.654 23.8824 18.6424C23.8882 18.6279 23.893 18.6135 23.8988 18.5981C23.9036 18.5855 23.9075 18.573 23.9113 18.5605C23.9162 18.546 23.921 18.5316 23.9248 18.5171C23.9287 18.5036 23.9325 18.4901 23.9364 18.4766C23.9402 18.4631 23.9441 18.4487 23.947 18.4342C23.9508 18.4198 23.9537 18.4053 23.9566 18.3908C23.9595 18.3774 23.9624 18.3639 23.9653 18.3504C23.9682 18.3349 23.9711 18.3195 23.974 18.3041C23.9759 18.2906 23.9788 18.2781 23.9807 18.2646C23.9836 18.2482 23.9855 18.2309 23.9875 18.2145C23.9894 18.2019 23.9904 18.1904 23.9923 18.1779C23.9942 18.1586 23.9952 18.1393 23.9971 18.12C23.9971 18.1094 23.999 18.0998 23.999 18.0892C24.001 18.0593 24.001 18.0294 24.001 17.9996V1.80709C24.001 1.62011 23.972 1.43989 23.92 1.27026H23.9181ZM22.1929 0.541644C22.4107 0.541644 22.616 0.597543 22.7953 0.694885C22.8849 0.744038 22.9678 0.802829 23.043 0.871257C23.0584 0.88475 23.0728 0.899207 23.0873 0.9127C23.1162 0.941613 23.1432 0.97149 23.1692 1.00233C23.1952 1.03317 23.2193 1.06594 23.2425 1.09967C23.3793 1.30207 23.4584 1.54494 23.4584 1.80612V17.9996C23.4584 18.0362 23.4564 18.0718 23.4535 18.1075C23.4535 18.1114 23.4535 18.1162 23.4535 18.12C23.4506 18.1538 23.4458 18.1875 23.44 18.2203C23.44 18.2251 23.4381 18.2299 23.4372 18.2357C23.4304 18.2684 23.4237 18.3012 23.415 18.333C23.414 18.3369 23.4131 18.3407 23.4121 18.3446C23.4025 18.3783 23.3919 18.4111 23.3803 18.4429C23.3803 18.4439 23.3803 18.4448 23.3793 18.4458C23.3408 18.5489 23.2887 18.6443 23.2251 18.733V18.7349C23.203 18.7638 23.1808 18.7927 23.1577 18.8197C23.1432 18.8361 23.1287 18.8525 23.1133 18.8689C23.1133 18.8689 23.1133 18.8689 23.1124 18.8698C23.0979 18.8853 23.0825 18.9007 23.0671 18.9151C23.0671 18.9151 23.0661 18.9161 23.0651 18.9171C23.0497 18.9315 23.0333 18.946 23.0169 18.9604C23.0169 18.9604 23.0169 18.9604 23.016 18.9614C22.9312 19.0337 22.8377 19.0944 22.7355 19.1426C22.7336 19.1436 22.7317 19.1445 22.7288 19.1455C22.7114 19.1532 22.6941 19.1609 22.6758 19.1686C22.6709 19.1705 22.6661 19.1725 22.6613 19.1744C22.6459 19.1802 22.6305 19.186 22.615 19.1917C22.6083 19.1937 22.6025 19.1956 22.5958 19.1985C22.5813 19.2033 22.5669 19.2081 22.5524 19.212C22.5447 19.2139 22.5379 19.2158 22.5302 19.2178C22.5167 19.2216 22.5023 19.2255 22.4888 19.2284C22.4811 19.2303 22.4734 19.2322 22.4657 19.2342C22.4522 19.237 22.4377 19.2399 22.4242 19.2428C22.4165 19.2448 22.4078 19.2457 22.4001 19.2476C22.3857 19.2496 22.3712 19.2515 22.3568 19.2534C22.349 19.2544 22.3413 19.2554 22.3327 19.2563C22.3172 19.2582 22.3009 19.2592 22.2845 19.2602C22.2777 19.2602 22.271 19.2611 22.2642 19.2621C22.2411 19.2631 22.2189 19.264 22.1958 19.264H5.99952C5.65063 19.264 5.33451 19.1224 5.10513 18.893C5.04827 18.8361 4.99622 18.7735 4.95093 18.706C4.8372 18.5373 4.76299 18.3407 4.74082 18.1287C4.73697 18.0863 4.73408 18.0429 4.73408 17.9996V1.80709C4.73408 1.78299 4.73408 1.75986 4.736 1.73673C4.736 1.72902 4.73697 1.72227 4.73793 1.71456C4.7389 1.69818 4.74082 1.68276 4.74179 1.66638C4.74179 1.6577 4.74372 1.64999 4.74468 1.64132C4.74661 1.62686 4.74853 1.61144 4.75143 1.59698C4.75239 1.58831 4.75432 1.5806 4.75624 1.57192C4.75914 1.55747 4.76203 1.54205 4.76588 1.52759C4.76781 1.51988 4.76974 1.51217 4.7707 1.50446C4.77456 1.48808 4.77938 1.47169 4.78419 1.45531C4.78612 1.44952 4.78709 1.44374 4.78901 1.43892C4.80251 1.39459 4.81889 1.35122 4.83624 1.30881C4.83624 1.30881 4.83624 1.30689 4.8372 1.30689C4.84588 1.28665 4.85551 1.26641 4.86515 1.24713C4.86708 1.24424 4.86804 1.24038 4.86997 1.23749C4.87864 1.22015 4.88828 1.2028 4.89792 1.18641C4.89985 1.18256 4.90177 1.17967 4.9037 1.17678C4.91334 1.15943 4.92394 1.14304 4.93454 1.12666C4.93647 1.12377 4.93743 1.12184 4.93936 1.11895C4.95189 1.10064 4.96442 1.08232 4.97695 1.06401C5.04634 0.969563 5.12826 0.883786 5.22079 0.811503C5.30078 0.748857 5.38752 0.695849 5.48101 0.654406C5.48293 0.654406 5.48486 0.652479 5.48679 0.651515C5.51666 0.638022 5.54751 0.626457 5.57835 0.614892C5.58027 0.614892 5.58317 0.612964 5.58509 0.612964C5.64678 0.591761 5.71038 0.575377 5.77496 0.562847C5.77978 0.562847 5.7846 0.56092 5.79038 0.559956C5.82122 0.555137 5.85206 0.551282 5.88386 0.548391C5.88965 0.548391 5.89543 0.548391 5.90025 0.547427C5.93302 0.544536 5.96579 0.543572 5.99855 0.543572H22.192L22.1929 0.541644Z"
,
"fill"
:
"black"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector_2"
,
"d"
:
"M16.2794 11.0016C16.8867 11.0016 17.379 10.5093 17.379 9.90192C17.379 9.29459 16.8867 8.80225 16.2794 8.80225C15.672 8.80225 15.1797 9.29459 15.1797 9.90192C15.1797 10.5093 15.672 11.0016 16.2794 11.0016Z"
,
"fill"
:
"black"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector_3"
,
"d"
:
"M11.9219 11.0016C12.5293 11.0016 13.0216 10.5093 13.0216 9.90192C13.0216 9.29459 12.5293 8.80225 11.9219 8.80225C11.3146 8.80225 10.8223 9.29459 10.8223 9.90192C10.8223 10.5093 11.3146 11.0016 11.9219 11.0016Z"
,
"fill"
:
"black"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"defs"
,
"attributes"
:
{},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"clipPath"
,
"attributes"
:
{
"id"
:
"clip0_9866_5923"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"rect"
,
"attributes"
:
{
"width"
:
"24"
,
"height"
:
"24.0945"
,
"fill"
:
"white"
},
"children"
:
[]
}
]
}
]
}
]
},
"name"
:
"Openllm"
}
\ No newline at end of file
web/app/components/base/icons/src/public/llm/Openllm.tsx
0 → 100644
View file @
215a27fd
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./Openllm.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
}
/>)
export
default
Icon
web/app/components/base/icons/src/public/llm/OpenllmText.json
0 → 100644
View file @
215a27fd
This diff is collapsed.
Click to expand it.
web/app/components/base/icons/src/public/llm/OpenllmText.tsx
0 → 100644
View file @
215a27fd
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./OpenllmText.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
}
/>)
export
default
Icon
web/app/components/base/icons/src/public/llm/XorbitsInference.json
0 → 100644
View file @
215a27fd
{
"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"
:
"Xorbits Square"
,
"clip-path"
:
"url(#clip0_9850_26870)"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector"
,
"d"
:
"M8.00391 12.3124C8.69334 13.0754 9.47526 13.7494 10.3316 14.3188C11.0667 14.8105 11.8509 15.2245 12.6716 15.5541C14.1617 14.1465 15.3959 12.4907 16.3192 10.6606L21.7051 0L12.3133 7.38353C10.5832 8.74456 9.12178 10.416 8.00391 12.3124Z"
,
"fill"
:
"url(#paint0_linear_9850_26870)"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector_2"
,
"d"
:
"M7.23504 18.9512C6.56092 18.5012 5.92386 18.0265 5.3221 17.5394L2.06445 24L7.91975 19.3959C7.69034 19.2494 7.46092 19.103 7.23504 18.9512Z"
,
"fill"
:
"url(#paint1_linear_9850_26870)"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector_3"
,
"d"
:
"M19.3161 8.57474C21.0808 10.9147 21.5961 13.5159 20.3996 15.3053C18.6526 17.9189 13.9161 17.8183 9.82024 15.0812C5.72435 12.3441 3.82024 8.0065 5.56729 5.39297C6.76377 3.60356 9.36318 3.0865 12.2008 3.81886C7.29318 1.73474 2.62376 1.94121 0.813177 4.64474C-1.45976 8.04709 1.64435 14.1177 7.74494 18.1889C13.8455 22.26 20.6361 22.8124 22.9091 19.4118C24.7179 16.703 23.1173 12.3106 19.3161 8.57474Z"
,
"fill"
:
"url(#paint2_linear_9850_26870)"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"defs"
,
"attributes"
:
{},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"linearGradient"
,
"attributes"
:
{
"id"
:
"paint0_linear_9850_26870"
,
"x1"
:
"2.15214"
,
"y1"
:
"24.3018"
,
"x2"
:
"21.2921"
,
"y2"
:
"0.0988218"
,
"gradientUnits"
:
"userSpaceOnUse"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"stop-color"
:
"#E9A85E"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"offset"
:
"1"
,
"stop-color"
:
"#F52B76"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"linearGradient"
,
"attributes"
:
{
"id"
:
"paint1_linear_9850_26870"
,
"x1"
:
"2.06269"
,
"y1"
:
"24.2294"
,
"x2"
:
"21.2027"
,
"y2"
:
"0.028252"
,
"gradientUnits"
:
"userSpaceOnUse"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"stop-color"
:
"#E9A85E"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"offset"
:
"1"
,
"stop-color"
:
"#F52B76"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"linearGradient"
,
"attributes"
:
{
"id"
:
"paint2_linear_9850_26870"
,
"x1"
:
"-0.613606"
,
"y1"
:
"3.843"
,
"x2"
:
"21.4449"
,
"y2"
:
"18.7258"
,
"gradientUnits"
:
"userSpaceOnUse"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"stop-color"
:
"#6A0CF5"
},
"children"
:
[]
},
{
"type"
:
"element"
,
"name"
:
"stop"
,
"attributes"
:
{
"offset"
:
"1"
,
"stop-color"
:
"#AB66F3"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"clipPath"
,
"attributes"
:
{
"id"
:
"clip0_9850_26870"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"rect"
,
"attributes"
:
{
"width"
:
"24"
,
"height"
:
"24"
,
"fill"
:
"white"
},
"children"
:
[]
}
]
}
]
}
]
},
"name"
:
"XorbitsInference"
}
\ No newline at end of file
web/app/components/base/icons/src/public/llm/XorbitsInference.tsx
0 → 100644
View file @
215a27fd
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./XorbitsInference.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
}
/>)
export
default
Icon
web/app/components/base/icons/src/public/llm/XorbitsInferenceText.json
0 → 100644
View file @
215a27fd
This diff is collapsed.
Click to expand it.
web/app/components/base/icons/src/public/llm/XorbitsInferenceText.tsx
0 → 100644
View file @
215a27fd
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./XorbitsInferenceText.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
}
/>)
export
default
Icon
web/app/components/base/icons/src/public/llm/index.ts
View file @
215a27fd
...
...
@@ -21,5 +21,9 @@ export { default as OpenaiGreen } from './OpenaiGreen'
export
{
default
as
OpenaiText
}
from
'./OpenaiText'
export
{
default
as
OpenaiTransparent
}
from
'./OpenaiTransparent'
export
{
default
as
OpenaiViolet
}
from
'./OpenaiViolet'
export
{
default
as
OpenllmText
}
from
'./OpenllmText'
export
{
default
as
Openllm
}
from
'./Openllm'
export
{
default
as
ReplicateText
}
from
'./ReplicateText'
export
{
default
as
Replicate
}
from
'./Replicate'
export
{
default
as
XorbitsInferenceText
}
from
'./XorbitsInferenceText'
export
{
default
as
XorbitsInference
}
from
'./XorbitsInference'
web/app/components/base/icons/src/vender/line/general/DotsHorizontal.json
View file @
215a27fd
...
...
@@ -68,4 +68,4 @@
]
},
"name"
:
"DotsHorizontal"
}
}
\ No newline at end of file
web/app/components/header/account-setting/model-page/configs/index.ts
View file @
215a27fd
...
...
@@ -8,6 +8,8 @@ import tongyi from './tongyi'
import
spark
from
'./spark'
import
minimax
from
'./minimax'
import
chatglm
from
'./chatglm'
import
xinference
from
'./xinference'
import
openllm
from
'./openllm'
export
default
{
openai
,
...
...
@@ -20,4 +22,6 @@ export default {
spark
,
minimax
,
chatglm
,
xinference
,
openllm
,
}
web/app/components/header/account-setting/model-page/configs/openllm.tsx
0 → 100644
View file @
215a27fd
import
{
ProviderEnum
}
from
'../declarations'
import
type
{
ProviderConfig
}
from
'../declarations'
import
{
Openllm
,
OpenllmText
}
from
'@/app/components/base/icons/src/public/llm'
const
config
:
ProviderConfig
=
{
selector
:
{
name
:
{
'en'
:
'OpenLLM'
,
'zh-Hans'
:
'OpenLLM'
,
},
icon
:
<
Openllm
className=
'w-full h-full'
/>,
},
item
:
{
key
:
ProviderEnum
.
openllm
,
titleIcon
:
{
'en'
:
<
OpenllmText
className
=
'h-6'
/>
,
'zh-Hans'
:
<
OpenllmText
className
=
'h-6'
/>
,
},
disable
:
{
tip
:
{
'en'
:
'Only supports the '
,
'zh-Hans'
:
'仅支持'
,
},
link
:
{
href
:
{
'en'
:
'https://docs.dify.ai/getting-started/install-self-hosted'
,
'zh-Hans'
:
'https://docs.dify.ai/v/zh-hans/getting-started/install-self-hosted'
,
},
label
:
{
'en'
:
'community open-source version'
,
'zh-Hans'
:
'社区开源版本'
,
},
},
},
},
modal
:
{
key
:
ProviderEnum
.
openllm
,
title
:
{
'en'
:
'OpenLLM'
,
'zh-Hans'
:
'OpenLLM'
,
},
icon
:
<
Openllm
className=
'h-6'
/>,
link
:
{
href
:
'https://github.com/bentoml/OpenLLM'
,
label
:
{
'en'
:
'How to deploy OpenLLM'
,
'zh-Hans'
:
'如何部署 OpenLLM'
,
},
},
defaultValue
:
{
model_type
:
'text-generation'
,
},
validateKeys
:
[
'model_type'
,
'model_name'
,
'server_url'
,
],
fields
:
[
{
type
:
'text'
,
key
:
'model_name'
,
required
:
true
,
label
:
{
'en'
:
'Model Name'
,
'zh-Hans'
:
'模型名称'
,
},
placeholder
:
{
'en'
:
'Enter your Model Name here'
,
'zh-Hans'
:
'在此输入您的模型名称'
,
},
},
{
type
:
'text'
,
key
:
'server_url'
,
required
:
true
,
label
:
{
'en'
:
'Server url'
,
'zh-Hans'
:
'Server url'
,
},
placeholder
:
{
'en'
:
'Enter your Server Url, eg: https://example.com/xxx'
,
'zh-Hans'
:
'在此输入您的 Server Url,如:https://example.com/xxx'
,
},
},
],
},
}
export
default
config
web/app/components/header/account-setting/model-page/configs/xinference.tsx
0 → 100644
View file @
215a27fd
import
{
ProviderEnum
}
from
'../declarations'
import
type
{
ProviderConfig
}
from
'../declarations'
import
{
XorbitsInference
,
XorbitsInferenceText
}
from
'@/app/components/base/icons/src/public/llm'
const
config
:
ProviderConfig
=
{
selector
:
{
name
:
{
'en'
:
'Xinference'
,
'zh-Hans'
:
'Xinference'
,
},
icon
:
<
XorbitsInference
className=
'w-full h-full'
/>,
},
item
:
{
key
:
ProviderEnum
.
xinference
,
titleIcon
:
{
'en'
:
<
XorbitsInferenceText
className
=
'h-6'
/>
,
'zh-Hans'
:
<
XorbitsInferenceText
className
=
'h-6'
/>
,
},
disable
:
{
tip
:
{
'en'
:
'Only supports the '
,
'zh-Hans'
:
'仅支持'
,
},
link
:
{
href
:
{
'en'
:
'https://docs.dify.ai/getting-started/install-self-hosted'
,
'zh-Hans'
:
'https://docs.dify.ai/v/zh-hans/getting-started/install-self-hosted'
,
},
label
:
{
'en'
:
'community open-source version'
,
'zh-Hans'
:
'社区开源版本'
,
},
},
},
},
modal
:
{
key
:
ProviderEnum
.
xinference
,
title
:
{
'en'
:
'Xinference'
,
'zh-Hans'
:
'Xinference'
,
},
icon
:
<
XorbitsInference
className=
'h-6'
/>,
link
:
{
href
:
'https://github.com/xorbitsai/inference'
,
label
:
{
'en'
:
'How to deploy Xinference'
,
'zh-Hans'
:
'如何部署 Xinference'
,
},
},
defaultValue
:
{
model_type
:
'text-generation'
,
},
validateKeys
:
[
'model_type'
,
'model_name'
,
'server_url'
,
'model_uid'
,
],
fields
:
[
{
type
:
'radio'
,
key
:
'model_type'
,
required
:
true
,
label
:
{
'en'
:
'Model Type'
,
'zh-Hans'
:
'模型类型'
,
},
options
:
[
{
key
:
'text-generation'
,
label
:
{
'en'
:
'Text Generation'
,
'zh-Hans'
:
'文本生成'
,
},
},
{
key
:
'embeddings'
,
label
:
{
'en'
:
'Embeddings'
,
'zh-Hans'
:
'Embeddings'
,
},
},
],
},
{
type
:
'text'
,
key
:
'model_name'
,
required
:
true
,
label
:
{
'en'
:
'Model Name'
,
'zh-Hans'
:
'模型名称'
,
},
placeholder
:
{
'en'
:
'Enter your Model Name here'
,
'zh-Hans'
:
'在此输入您的模型名称'
,
},
},
{
type
:
'text'
,
key
:
'server_url'
,
required
:
true
,
label
:
{
'en'
:
'Server Url'
,
'zh-Hans'
:
'Server Url'
,
},
placeholder
:
{
'en'
:
'Enter your Server url, eg: https://example.com/xxx'
,
'zh-Hans'
:
'在此输入您的 Server url,如:https://example.com/xxx'
,
},
},
{
type
:
'text'
,
key
:
'model_uid'
,
required
:
true
,
label
:
{
'en'
:
'Model UID'
,
'zh-Hans'
:
'Model UID'
,
},
placeholder
:
{
'en'
:
'Enter your Model UID'
,
'zh-Hans'
:
'在此输入您的 Model UID'
,
},
},
],
},
}
export
default
config
web/app/components/header/account-setting/model-page/declarations.ts
View file @
215a27fd
...
...
@@ -39,6 +39,8 @@ export enum ProviderEnum {
'spark'
=
'spark'
,
'minimax'
=
'minimax'
,
'chatglm'
=
'chatglm'
,
'xinference'
=
'xinference'
,
'openllm'
=
'openllm'
,
}
export
type
ProviderConfigItem
=
{
...
...
web/app/components/header/account-setting/model-page/index.tsx
View file @
215a27fd
...
...
@@ -83,6 +83,8 @@ const ModelPage = () => {
config
.
tongyi
,
config
.
wenxin
,
config
.
chatglm
,
config
.
xinference
,
config
.
openllm
,
]
}
else
{
...
...
@@ -95,6 +97,8 @@ const ModelPage = () => {
config
.
tongyi
,
config
.
wenxin
,
config
.
chatglm
,
config
.
xinference
,
config
.
openllm
,
]
}
...
...
web/app/components/header/account-setting/model-page/model-item/Setting.tsx
View file @
215a27fd
...
...
@@ -59,8 +59,9 @@ const Setting: FC<SettingProps> = ({
{
configurable
&&
(
<
Button
className=
{
`!px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700 ${!!modelItem.disable && '!text-gray-300'}`
}
className=
{
`!px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700 ${!!modelItem.disable &&
!IS_CE_EDITION &&
'!text-gray-300'}`
}
onClick=
{
()
=>
onOpenModal
()
}
disabled=
{
!!
modelItem
.
disable
&&
!
IS_CE_EDITION
}
>
{
t
(
'common.operation.add'
)
}
</
Button
>
...
...
web/app/components/header/account-setting/model-page/utils.ts
View file @
215a27fd
...
...
@@ -2,7 +2,7 @@ import { ValidatedStatus } from '../key-validator/declarations'
import
{
ProviderEnum
}
from
'./declarations'
import
{
validateModelProvider
}
from
'@/service/common'
export
const
ConfigurableProviders
=
[
ProviderEnum
.
azure_openai
,
ProviderEnum
.
replicate
,
ProviderEnum
.
huggingface_hub
]
export
const
ConfigurableProviders
=
[
ProviderEnum
.
azure_openai
,
ProviderEnum
.
replicate
,
ProviderEnum
.
huggingface_hub
,
ProviderEnum
.
xinference
,
ProviderEnum
.
openllm
]
export
const
validateModelProviderFn
=
async
(
providerName
:
ProviderEnum
,
v
:
any
)
=>
{
let
body
,
url
...
...
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