Fixes: Fixed some bugs #10703 (#11180)

### What problem does this PR solve?

Fixes: Fixed some bugs #10703

- Removed S3 upload from the file upload component
- Updated the dropdown menu style on the model provider page
- Updated some model provider icons
- Fixed other style issues

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-12 09:36:48 +08:00
committed by GitHub
parent 2c727a4a9c
commit 435479adb3
26 changed files with 190 additions and 302 deletions

View File

@ -1,6 +1,7 @@
(window._iconfont_svg_string_4909832 =
'<svg>' +
`
<symbol id="icon-moxing-default" viewBox="0 0 1024 1024"><path d="M771.7 616.4c-13.9 0-27.8 4.4-41.7 8.9L590.8 381c23.2-22.2 41.7-48.9 41.7-84.4 0-62.2-51-111.1-115.9-111.1s-115.9 53.3-115.9 111.1c0 26.6 9.3 53.3 27.8 75.5L284.7 620.8c-9.3 0-18.5-4.4-27.8-4.4-64.9 0-115.9 48.9-115.9 111 0 62.2 51 111.1 115.9 111.1 55.7 0 102-40 111.3-93.3h287.5c9.3 53.3 55.7 93.3 111.3 93.3 64.9 0 115.9-48.9 115.9-111.1 0.1-62.1-46.3-111-111.2-111zM665 700.8H372.9c-4.6-26.7-23.2-48.9-41.7-62.2l139.1-239.9c13.9 8.9 32.5 8.9 46.4 8.9 9.3 0 23.2 0 32.5-4.4L693 647.5c-14 13.3-23.3 31.1-28 53.3z" ></path></symbol>
<symbol id="icon-builtin" viewBox="0 0 1024 1024"><path d="M544.256 45.824a64 64 0 0 0-64.512 0l-352 205.312a64 64 0 0 0-31.744 55.296v22.1696a64 64 0 1 0 64 0v-22.1696L512 101.12l352 205.312v141.6192h64V306.432a64 64 0 0 0-31.744-55.296L544.2048 45.824zM960 640c0 23.7056-12.8512 44.3904-32 55.5008v22.1696c0 22.784-12.0832 43.8272-31.744 55.296l-352.0512 205.312a64 64 0 0 1-64.512 0l-351.9488-205.312a64 64 0 0 1-31.744-55.296v-141.6192h64v141.6192L512 922.9824l352-205.312v-22.1696A64 64 0 1 1 960 640z" ></path><path d="M316.3136 704H256l135.5776-384H457.216l135.5776 384h-60.3648l-34.4064-101.5808H350.8224l-34.5088 101.632zM425.984 389.8368h-2.9184l-55.6544 163.84h114.1248l-55.552-163.84zM704 320v384h-56.832v-384h56.832z" ></path></symbol>
<symbol id="icon-replicate" viewBox="0 0 1024 1024"><path d="M960 165.44H177.28V960H64V64h896v101.44z" ></path><path d="M960 356.992H390.848V960h-113.28V255.552H960v101.44z" ></path><path d="M960 548.352H604.672V960h-113.28V447.168H960v101.184z" ></path></symbol>

View File

@ -1,8 +1,22 @@
<svg viewBox="0 0 87.3 78" xmlns="http://www.w3.org/2000/svg">
<path d="m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z" fill="#0066da"/>
<path d="m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z" fill="#00ac47"/>
<path d="m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z" fill="#ea4335"/>
<path d="m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z" fill="#00832d"/>
<path d="m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z" fill="#2684fc"/>
<path d="m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z" fill="#ffba00"/>
</svg>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="googledrive">
<mask id="mask0_886_29931" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
<rect id="&#231;&#159;&#169;&#229;&#189;&#162;" width="24" height="24" fill="white"/>
</mask>
<g mask="url(#mask0_886_29931)">
</g>
<g id="RAGFlow 4" clip-path="url(#clip0_886_29931)">
<path id="Vector" d="M4.36082 17.7121L5.15464 19.0762C5.31959 19.3634 5.5567 19.589 5.83505 19.7531L8.6701 14.8711H3C3 15.189 3.08247 15.507 3.24742 15.7942L4.36082 17.7121Z" fill="#0066DA"/>
<path id="Vector_2" d="M12 9.12814L9.16495 4.24609C8.8866 4.4102 8.64948 4.63584 8.48454 4.92302L3.24742 13.9487C3.08551 14.2296 3.00022 14.5478 3 14.8717H8.6701L12 9.12814Z" fill="#00AC47"/>
<path id="Vector_3" d="M18.1651 19.7531C18.4434 19.589 18.6805 19.3634 18.8455 19.0762L19.1754 18.5121L20.7527 15.7942C20.9176 15.507 21.0001 15.189 21.0001 14.8711H15.3296L16.5362 17.2301L18.1651 19.7531Z" fill="#EA4335"/>
<path id="Vector_4" d="M12.0001 9.12821L14.8351 4.24615C14.5568 4.08205 14.2372 4 13.9073 4H10.0929C9.76298 4 9.44339 4.09231 9.16504 4.24615L12.0001 9.12821Z" fill="#00832D"/>
<path id="Vector_5" d="M15.3298 14.8711H8.67001L5.83496 19.7531C6.11331 19.9172 6.4329 19.9993 6.7628 19.9993H17.237C17.5669 19.9993 17.8865 19.907 18.1649 19.7531L15.3298 14.8711Z" fill="#2684FC"/>
<path id="Vector_6" d="M18.134 9.43584L15.5155 4.92302C15.3505 4.63584 15.1134 4.4102 14.8351 4.24609L12 9.12814L15.3299 14.8717H20.9897C20.9897 14.5538 20.9072 14.2358 20.7423 13.9487L18.134 9.43584Z" fill="#FFBA00"/>
</g>
</g>
<defs>
<clipPath id="clip0_886_29931">
<rect width="18" height="16" fill="white" transform="translate(3 4)"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 755 B

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1720424457619" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6109" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M415.185455 477.696v314.554182c-22.248727 106.496-170.449455 79.034182-171.101091 1.768727-0.698182-97.047273 0-193.396364 0-289.792V392.564364c0-13.963636-3.165091-24.994909-16.011637-33.792-24.994909-17.780364-54.923636 3.165091-55.575272 28.858181-1.396364 34.443636-0.698182 68.189091-1.396364 102.213819 0 26.810182 0 52.922182 0.698182 79.685818C153.320727 687.522909 3.397818 667.927273 0 570.228364v-81.733819c0-26.810182 54.923636-33.093818 52.224 6.981819-1.768727 19.828364-0.651636 40.308364-1.349818 59.904-0.651636 35.095273 55.621818 58.740364 68.887273 1.349818 0.698182-47.290182 0.698182-94.580364 0.698181-142.336 0-59.857455 17.780364-108.497455 84.247273-113.012364 28.811636-2.466909 47.941818 8.983273 66.373818 28.858182 6.981818 6.981818 23.645091 29.230545 24.343273 53.527273 0 22.341818 0.651636 44.590545 0.651636 67.118545 0 44.590545-0.651636 89.367273-0.651636 133.957818 0 28.858182 0.651636 57.437091 0.651636 85.597091 0 35.793455 0 72.052364-0.651636 107.845818-0.698182 46.592 58.740364 45.940364 68.235636-0.698181 0-54.923636 0.651636-109.195636 0.651637-164.119273 0-135.354182-0.651636-270.661818-0.651637-405.969455 0-13.963636-2.048-52.922182 5.818182-67.118545 41.425455-96.349091 167.330909-54.272 168.448 25.460364 2.466909 163.467636 0 328.750545 0.651637 492.63709 0 56.785455-48.407273 44.590545-51.10691 22.341819 0-170.496 0-341.643636 0.698182-511.860364-2.466909-42.775273-68.887273-36.910545-72.750545-6.283636-1.349818 35.141818-0.651636 70.935273-1.349818 106.030545v208.756364h0.698181l0.465455 0.232727z" fill="#AE70FF" p-id="6110"></path><path d="M609.745455 475.182545v231.005091V161.047273c21.643636-107.194182 169.797818-79.266909 170.449454-2.001455 0.698182 96.349091 0 193.396364 0.698182 289.745455 0 36.957091 0 74.100364-0.698182 111.010909 0 14.661818 3.816727 24.994909 16.663273 34.443636 24.343273 17.361455 54.272-3.118545 55.621818-29.230545 1.349818-33.792 0.651636-67.584 0.651636-102.260364V383.534545c18.478545-117.992727 168.029091-98.397091 171.147637-0.698181v296.075636c0 26.810182-54.272 33.140364-51.805091-6.981818 1.396364-20.48 0-254.603636 0.698182-275.130182 1.349818-34.443636-55.621818-58.786909-68.887273-0.698182v141.637818c0 60.602182-17.826909 108.544-84.898909 113.710546-63.301818 1.396364-88.715636-40.308364-90.763637-82.385455V282.856727c0-36.491636 0-72.052364 0.698182-107.845818 0.651636-46.592-58.786909-46.592-68.887272 0.698182v640.791273c0 13.963636 2.001455 52.922182-5.213091 67.118545-41.425455 96.349091-167.936 54.272-169.099637-25.460364v-75.86909c3.165091-51.106909 48.407273-38.958545 50.455273-17.361455v90.065455c2.466909 42.821818 68.887273 37.608727 72.052364 6.330181 1.349818-35.141818 1.349818-70.283636 1.349818-106.077091V475.229091H609.745455z" fill="#AE70FF" p-id="6111"></path></svg>

Before

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -1,114 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 28.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.0" id="katman_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1589 1092" style="enable-background:new 0 0 1589 1092;" xml:space="preserve">
<style type="text/css">
.st0{fill:#8779CD;}
.st1{fill:#4991E7;}
.st2{fill:#8A78CB;}
.st3{fill:url(#SVGID_1_);}
.st4{fill:#4D8BEB;}
.st5{fill:#7F7BD1;}
.st6{fill:url(#SVGID_00000002374047799971512340000007471530466755245738_);}
.st7{fill:url(#SVGID_00000157275849013902826440000016458342546856776875_);}
</style>
<g>
<path class="st0" d="M1124.57,373.55c0.31,0,0.32-0.07,0.05-0.2c-0.17-0.08-0.34-0.12-0.52-0.12
c-23.87-0.46-44.64-8.81-62.33-25.04c-18.73-17.18-30.31-42.27-29.75-68.18c0-0.04-0.02-0.06-0.06-0.06
c-0.15-0.01-0.17-0.01-0.04,0c0.04,0.01,0.06,0.03,0.05,0.07c-0.56,6.79-1.25,12.28-2.08,16.45c-5.2,26.17-18.72,46.59-40.55,61.26
c-15.05,10.11-31.88,15.26-50.49,15.47c-0.11,0-0.16,0.05-0.16,0.16v0.01c0,0.11,0.06,0.17,0.17,0.17
c27.03-0.05,54.53,13.25,71.42,34.26c9.03,11.23,15.25,23.74,18.65,37.52c0.81,3.27,1.43,6.72,1.86,10.34
c0.45,3.77,0.81,7.31,1.07,10.64c0.07,0.83,0.11,0.83,0.13-0.01c0.12-5.43,0.28-10.69,1.22-15.96
c6.06-33.79,29.86-60.29,61.88-71.75C1104.58,375.18,1114.41,373.5,1124.57,373.55z"/>
</g>
<g>
<path class="st1" d="M468.99,570.58H323.75h0c-0.29,0-0.53,0.24-0.53,0.53l0.01,33.95c0,0.43,0.35,0.77,0.78,0.77h108.5
c0.47,0,0.68,0.23,0.65,0.69c-1.24,15.39-4.56,28.52-9.97,39.41c-13.71,27.61-36.17,45.26-67.38,52.94
c-12.12,2.98-24.87,4.19-38.26,3.62c-23.38-0.99-44.83-8.27-64.36-21.86c-27.04-18.83-44.26-49.58-48.13-82.08
c-1.91-16-1.38-31.61,1.59-46.82c4.5-23.09,16.19-44.7,33.49-61.05c19.55-18.48,43.26-29.07,71.13-31.76
c34.53-3.33,72.86,8.95,95.88,35.39c0.27,0.31,0.54,0.31,0.83,0.02l25.75-26.48c0.29-0.3,0.28-0.58-0.05-0.84
c-1.89-1.49-3.22-3.46-4.97-5.13c-8.05-7.73-16.45-14.07-25.19-19.02c-27.14-15.33-58.47-22.05-89.79-20.37
c-26.99,1.44-51.79,9.13-74.41,23.07c-25.29,15.59-44.66,36.97-58.1,64.14c-13.12,26.53-17.74,56.08-15.28,85.68
c2.32,27.87,11.53,53.36,27.62,76.45c26.8,38.46,68.51,62.31,115.38,65.98c48.55,3.81,97.2-11.31,129.15-49.08
c15.45-18.27,25.56-39.58,30.35-63.93c1.26-6.41,2.15-13.18,2.67-20.31c0.84-11.31,0.24-22.53-1.81-33.65
C469.27,570.69,469.14,570.58,468.99,570.58z"/>
</g>
<g>
<circle class="st2" cx="1108.46" cy="451.38" r="26.99"/>
</g>
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="1373.5259" y1="451.3777" x2="1427.4858" y2="451.3777">
<stop offset="0" style="stop-color:#439DDF"/>
<stop offset="0" style="stop-color:#4F87ED"/>
<stop offset="0" style="stop-color:#9476C5"/>
<stop offset="0" style="stop-color:#BC688E"/>
<stop offset="1" style="stop-color:#D6645D"/>
</linearGradient>
<circle class="st3" cx="1400.51" cy="451.38" r="26.98"/>
</g>
<g>
<g>
<path class="st4" d="M614.94,510.07c-27.34-3.09-53.3,2.03-75.45,18.67c-27.64,20.76-42.19,52.35-44.27,86.89
c-0.61,10.28-0.17,20.38,1.33,30.3c3.69,24.45,13.67,44.97,29.94,61.57c25.12,25.64,60.04,34.54,95.3,29.6
c11.11-1.56,20.53-4.19,28.26-7.89c21.5-10.29,37.89-26.02,49.17-47.19c0.01-0.01,0.01-0.02,0.01-0.03
c0.11-0.22,0.01-0.48-0.21-0.59l-31.42-14.87c-0.03-0.01-0.06-0.03-0.1-0.04c-0.42-0.14-0.87,0.09-1.01,0.52
c-0.12,0.37-0.28,0.72-0.47,1.06c-9.29,15.92-25.76,30.49-44.18,34.45c-9.83,2.11-19.13,2.43-27.88,0.97
c-30.48-5.08-53.56-27.7-59.25-58.04c-0.88-4.72-1.45-9.12-1.7-13.2c-0.03-0.45,0.19-0.67,0.64-0.67H702.1
c0.45,0,0.7-0.23,0.74-0.68c2.69-28.85-3.42-58.64-20.13-82.12C666.94,526.62,642.21,513.15,614.94,510.07z M663,600.58H535.82
c-0.43,0-0.6-0.21-0.51-0.64c2.95-13.33,8.25-24.64,15.9-33.91c10.88-13.18,26.74-21.54,43.93-22.57
c3.74-0.22,7.72-0.21,11.93,0.04c16.35,0.95,32.82,8.76,43.04,21.59c7.82,9.8,12.29,21.44,13.42,34.91
C663.56,600.38,663.38,600.58,663,600.58z"/>
</g>
</g>
<g>
<path class="st5" d="M1054.69,576.29c-1.93-16.86-8.45-33.49-19.59-46.27c-9.62-11.03-23.29-17.2-37.81-19.46
c-11.6-1.81-23.18-1.75-34.74,0.18c-7.59,1.33-14.15,3.4-19.66,6.2c-15.08,7.65-27.25,18.71-36.5,33.2
c-0.37,0.57-0.66,0.54-0.87-0.1c-0.63-1.85-1.42-3.65-2.38-5.41c-8.86-16.26-25.41-28.81-43.44-33.15
c-13.41-3.23-26.6-2.98-39.55,0.73c-17.31,5.21-31.41,14.86-42.31,28.93c-1.33,1.71-2.6,3.7-3.8,5.96
c-0.16,0.29-0.41,0.45-0.74,0.48l-0.5,0.04c-0.38,0.03-0.57-0.14-0.57-0.52l0.02-30.78c0,0,0-0.01,0-0.01
c0-0.13-0.1-0.23-0.23-0.23h-35.5c-0.42,0-0.76,0.34-0.76,0.76l0.01,214.35c0,0.25,0.12,0.38,0.37,0.38l37.37,0.01
c0.37,0,0.55-0.18,0.56-0.55c0.03-37.07,0-75.86-0.09-116.39c-0.02-6.81,0.32-12.29,1.01-16.44c4.42-26.52,23.44-53.23,52.48-54.48
c24.5-0.56,42.87,10.8,47.47,35.65c1.19,6.43,1.79,12.91,1.8,19.46c0.06,42.99,0.08,87.05,0.05,132.2c0,0.36,0.18,0.54,0.53,0.54
l36.76,0.01c0.23,0,0.42-0.19,0.42-0.42c0.09-37.85,0.07-75.53-0.04-113.04c-0.03-8.1,0.3-14.47,0.98-19.11
c1.67-11.49,5.87-22.17,12.59-32.03c3.2-4.71,7.28-9.01,12.24-12.91c9.58-7.53,20.51-10.95,32.79-10.28
c13.51,0.18,26.8,5.06,35.04,15.92c7.31,9.65,9.7,24.58,9.73,36.42c0.1,41.75,0.11,86.68,0.04,134.79c0,0.43,0.21,0.65,0.64,0.65
l36.52,0.01c0.4,0,0.6-0.2,0.6-0.6c-0.11-43.76-0.11-88.64,0.02-134.65C1055.67,588.72,1055.35,582.04,1054.69,576.29z"/>
</g>
<g>
<linearGradient id="SVGID_00000006692382290725070250000008342888873359191228_" gradientUnits="userSpaceOnUse" x1="1162.6759" y1="620.3867" x2="1350.1307" y2="620.3867">
<stop offset="0" style="stop-color:#439DDF"/>
<stop offset="0" style="stop-color:#4F87ED"/>
<stop offset="0" style="stop-color:#9177C7"/>
<stop offset="0.7815" style="stop-color:#9476C5"/>
<stop offset="0.8883" style="stop-color:#BC688E"/>
<stop offset="1" style="stop-color:#D6645D"/>
</linearGradient>
<path style="fill:url(#SVGID_00000006692382290725070250000008342888873359191228_);" d="M1341,549.28
c-10.36-21.4-28.17-34.24-51.19-38.36c-26.08-4.67-51.48-0.1-72.37,16.89c-6.89,5.26-12.22,11.18-15.98,17.77
c-1.85,3.25-2.78,3.01-2.78-0.73l0.01-28.19c0-0.39-0.19-0.58-0.58-0.58h-35.08c-0.19,0-0.35,0.16-0.35,0.36V730.9
c0,0.45,0.22,0.68,0.67,0.68l37.12-0.01c0.34,0,0.51-0.17,0.51-0.51c0.07-38.4,0.06-77.08-0.03-116.03
c-0.02-7.34,0.45-13.46,1.4-18.35c3.01-15.38,10.38-28.53,22.11-39.45c1.76-1.37,3.5-2.7,5.22-3.97
c11.17-8.28,23.33-10.43,36.92-9.26c16.58,1.43,33.15,9.83,39.82,25.25c3.53,8.16,5.3,17.25,5.32,27.28
c0.07,43.53,0.09,88.45,0.04,134.74c0,0.21,0.1,0.31,0.3,0.31h37.45c0.37,0,0.56-0.19,0.56-0.57c0.07-46.67,0.06-93.28-0.05-139.83
C1350,575.62,1346.98,561.65,1341,549.28z M1217.67,529.37c0.01,0,0.03,0,0.04,0c0.02,0.01,0.04,0.02,0.06,0.02
C1217.73,529.38,1217.7,529.37,1217.67,529.37z"/>
</g>
<g>
<path class="st2" d="M1127.23,516.08h-37.32c-0.15,0-0.27,0.12-0.27,0.27v214.96c0,0.15,0.12,0.27,0.27,0.27h37.32
c0.15,0,0.27-0.12,0.27-0.27V516.35C1127.5,516.2,1127.38,516.08,1127.23,516.08z"/>
</g>
<g>
<linearGradient id="SVGID_00000158714738904643395990000007397907749964941716_" gradientUnits="userSpaceOnUse" x1="1381.8658" y1="623.8276" x2="1419.6459" y2="623.8276">
<stop offset="0" style="stop-color:#439DDF"/>
<stop offset="0" style="stop-color:#4F87ED"/>
<stop offset="0" style="stop-color:#9476C5"/>
<stop offset="0" style="stop-color:#BC688E"/>
<stop offset="1" style="stop-color:#D6645D"/>
</linearGradient>
<path style="fill:url(#SVGID_00000158714738904643395990000007397907749964941716_);" d="M1419.38,516.08h-37.24
c-0.15,0-0.27,0.12-0.27,0.27v214.96c0,0.15,0.12,0.27,0.27,0.27h37.24c0.15,0,0.27-0.12,0.27-0.27V516.35
C1419.65,516.2,1419.53,516.08,1419.38,516.08z"/>
</g>
</svg>
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="#3186FF"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-fill-0)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-fill-1)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-fill-2)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-fill-0" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-fill-1" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-fill-2" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -1,37 +1 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="52px" height="52px" viewBox="0 0 52 52" enable-background="new 0 0 52 52" xml:space="preserve"> <image id="image0" width="52" height="52" x="0" y="0"
href="data:image/png;base64,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
ODoxODowOSswMDowMHtUK80AAAAASUVORK5CYII=" />
</svg>
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Stepfun</title><path d="M22.012 0h1.032v.927H24v.968h-.956V3.78h-1.032V1.896h-1.878v-.97h1.878V0zM2.6 12.371V1.87h.969v10.502h-.97zm10.423.66h10.95v.918h-6.208v9.579h-4.742V13.03zM5.629 3.333v12.356H0v4.51h10.386V8L20.859 8l-.003-4.668-15.227.001z" fill="url(#lobe-icons-stepfun-fill)" fill-rule="evenodd"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-stepfun-fill" x1="1.646" x2="18.342" y1="1.916" y2="22.091"><stop stop-color="#01A9FF"></stop><stop offset="1" stop-color="#0160FF"></stop></linearGradient></defs></svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 674 B

View File

@ -1,4 +1,5 @@
import { cn } from '@/lib/utils';
import { t } from 'i18next';
import { ArrowBigLeft } from 'lucide-react';
import React from 'react';
import { useNavigate } from 'umi';
@ -33,7 +34,7 @@ const BackButton: React.FC<BackButtonProps> = ({
{...props}
>
<ArrowBigLeft className="h-4 w-4" />
{children || 'Back'}
{children || t('common.back')}
</Button>
);
};

View File

@ -6,7 +6,6 @@ import {
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { IModalProps } from '@/interfaces/common';
import { zodResolver } from '@hookform/resolvers/zod';
import { TFunction } from 'i18next';
@ -102,7 +101,7 @@ export function FileUploadDialog({
<DialogHeader>
<DialogTitle>{t('fileManager.uploadFile')}</DialogTitle>
</DialogHeader>
<Tabs defaultValue="account">
{/* <Tabs defaultValue="account">
<TabsList className="grid w-full grid-cols-2 mb-4">
<TabsTrigger value="account">{t('fileManager.local')}</TabsTrigger>
<TabsTrigger value="password">{t('fileManager.s3')}</TabsTrigger>
@ -114,7 +113,11 @@ export function FileUploadDialog({
></UploadForm>
</TabsContent>
<TabsContent value="password">{t('common.comingSoon')}</TabsContent>
</Tabs>
</Tabs> */}
<UploadForm
submit={onOk!}
showParseOnCreation={showParseOnCreation}
></UploadForm>
<DialogFooter>
<ButtonLoading type="submit" loading={loading} form={UploadFormId}>
{t('common.save')}

View File

@ -68,6 +68,7 @@ export const LlmIcon = ({
LLMFactory.FishAudio,
LLMFactory.TogetherAI,
LLMFactory.Meituan,
LLMFactory.Longcat,
];
let icon = useMemo(() => {
const icontemp = IconMap[name as keyof typeof IconMap];
@ -84,7 +85,7 @@ export const LlmIcon = ({
const svgIcons = [
LLMFactory.LocalAI,
// LLMFactory.VolcEngine,
LLMFactory.MiniMax,
// LLMFactory.MiniMax,
LLMFactory.Gemini,
LLMFactory.StepFun,
// LLMFactory.DeerAPI,
@ -101,9 +102,16 @@ export const LlmIcon = ({
}
return icon ? (
<IconFontFill name={icon} className={cn('size-8', imgClass)} />
<IconFontFill
name={icon}
className={cn('size-8 flex items-center justify-center', imgClass)}
/>
) : (
<Avatar shape="square" size={size} icon={<UserOutlined />} />
<IconFontFill
name={'moxing-default'}
className={cn('size-8 flex items-center justify-center', imgClass)}
/>
// <Avatar shape="square" size={size} icon={<UserOutlined />} />
);
};

View File

@ -15,7 +15,7 @@ const Command = React.forwardRef<
<CommandPrimitive
ref={ref}
className={cn(
'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',
'flex h-full w-full flex-col overflow-hidden rounded-md bg-bg-base text-text-primary border-[0.5px] border-border-button',
className,
)}
{...props}

View File

@ -108,7 +108,7 @@ const Modal: ModalType = ({
<button
type="button"
onClick={() => handleCancel()}
className="px-2 py-1 border border-input rounded-md hover:bg-muted"
className="px-2 py-1 border border-border-button rounded-md hover:bg-bg-card hover:text-text-primary "
>
{cancelText ?? t('modal.cancelText')}
</button>
@ -132,7 +132,7 @@ const Modal: ModalType = ({
return (
<div
className={cn(
'flex items-center justify-end px-6 py-4',
'flex items-center justify-end px-6 py-6',
footerClassName,
)}
>

View File

@ -55,6 +55,7 @@ export enum LLMFactory {
XAI = 'xAI',
TokenPony = 'TokenPony',
Meituan = 'Meituan',
Longcat = 'LongCat',
CometAPI = 'CometAPI',
DeerAPI = 'DeerAPI',
Builtin = 'Builtin',
@ -74,7 +75,7 @@ export const IconMap = {
[LLMFactory.VolcEngine]: 'volcengine',
[LLMFactory.BaiChuan]: 'baichuan',
[LLMFactory.Jina]: 'jina',
[LLMFactory.MiniMax]: 'chat-minimax',
[LLMFactory.MiniMax]: 'MiniMax',
[LLMFactory.Mistral]: 'mistral',
[LLMFactory.AzureOpenAI]: 'azure',
[LLMFactory.Bedrock]: 'bedrock',
@ -118,6 +119,7 @@ export const IconMap = {
[LLMFactory.XAI]: 'xai',
[LLMFactory.TokenPony]: 'tokenpony',
[LLMFactory.Meituan]: 'longcat',
[LLMFactory.Longcat]: 'longcat',
[LLMFactory.CometAPI]: 'cometapi',
[LLMFactory.DeerAPI]: 'deerapi',
[LLMFactory.Builtin]: 'builtin',

View File

@ -402,6 +402,7 @@ export const useDeleteFactory = () => {
queryClient.invalidateQueries({ queryKey: ['myLlmList'] });
queryClient.invalidateQueries({ queryKey: ['myLlmListDetailed'] });
queryClient.invalidateQueries({ queryKey: ['factoryList'] });
queryClient.invalidateQueries({ queryKey: ['llmList'] });
message.success(t('message.deleted'));
}
return data.code;

View File

@ -1,6 +1,7 @@
export default {
translation: {
common: {
back: 'Back',
noResults: 'No results.',
selectPlaceholder: 'select value',
selectAll: 'Select all',
@ -693,6 +694,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
tocEnhanceTip: ` During the parsing of the document, table of contents information was generated (see the 'Enable Table of Contents Extraction' option in the General method). This allows the large model to return table of contents items relevant to the user's query, thereby using these items to retrieve related chunks and apply weighting to these chunks during the sorting process. This approach is derived from mimicking the behavioral logic of how humans search for knowledge in books.`,
},
setting: {
configureModelTitle: 'Configure model',
confluenceIsCloudTip:
'Check if this is a Confluence Cloud instance, uncheck for Confluence Server/Data Center',
confluenceWikiBaseUrlTip:

View File

@ -1,6 +1,7 @@
export default {
translation: {
common: {
back: '返回',
noResults: '无结果。',
selectPlaceholder: '请选择',
selectAll: '全选',
@ -679,9 +680,11 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
chatSetting: '聊天设置',
avatarHidden: '隐藏头像',
locale: '地区',
tocEnhance: '目录增强',
tocEnhanceTip: `解析文档时生成了目录信息见General方法的启用目录抽取让大模型返回和用户问题相关的目录项从而利用目录项拿到相关chunk对这些chunk在排序中进行加权。这种方法来源于模仿人类查询书本中知识的行为逻辑`,
},
setting: {
configureModelTitle: '配置模型',
confluenceIsCloudTip:
'检查这是否是 Confluence Cloud 实例,如果是 Confluence 服务/数据中心,则取消选中。',
confluenceWikiBaseUrlTip:
@ -759,7 +762,7 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
confirmPasswordMessage: '请确认新密码',
confirmPasswordNonMatchMessage: '您输入的新密码不匹配!',
cancel: '取消',
addedModels: '添加的模型',
addedModels: '添加的模型',
modelsToBeAdded: '待添加的模型',
addTheModel: '添加',
apiKey: 'API-Key',
@ -1011,10 +1014,10 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
exceptionMethod: '异常处理方法',
maxRounds: '最大反思轮数',
delayEfterError: '错误后延迟',
maxRetries: '最大重试轮数',
maxRetries: '最大反思轮数',
advancedSettings: '高级设置',
addTools: '添加工具',
sysPromptDefaultValue: `
sysPromptDefultValue: `
<role>
你是一名乐于助人的助手,一名专注于为用户解决问题的 AI 助手。
如果用户指定了特定领域,你需要在该领域展现专业性;如果没有,则以通用助手的方式工作。

View File

@ -157,7 +157,7 @@ const Login = () => {
{/* <SpotlightTopRight opcity={0.7} coverage={10} /> */}
<div className="absolute top-3 flex flex-col items-center mb-12 w-full text-text-primary">
<div className="flex items-center mb-4 w-full pl-10 pt-10 ">
<div className="w-12 h-12 p-2 rounded-lg bg-bg-base flex items-center justify-center mr-3">
<div className="w-12 h-12 p-2 rounded-lg flex items-center justify-center mr-3">
<img
src={'/logo.svg'}
alt="logo"

View File

@ -63,7 +63,7 @@ const AddDataSourceModal = ({
] as FieldValues
}
>
<div className="flex items-center justify-end w-full gap-2">
<div className="flex items-center justify-end w-full gap-2 py-4">
<DynamicForm.CancelButton
handleCancel={() => {
hideModal?.();

View File

@ -302,7 +302,7 @@ const GoogleDriveTokenField = ({
</div>
)}
<FileUploader
className="py-4"
className="py-4 border-[0.5px] bg-bg-card text-text-secondary"
value={files}
onValueChange={handleValueChange}
accept={{ '*.json': [FileMimeType.Json] }}

View File

@ -270,101 +270,101 @@ export const DataSourceFormFields = {
defaultValue: 'uploaded',
},
],
[DataSourceKey.GOOGLE_DRIVE]: [
{
label: 'Primary Admin Email',
name: 'config.credentials.google_primary_admin',
type: FormFieldType.Text,
required: true,
placeholder: 'admin@example.com',
tooltip: t('setting.google_drivePrimaryAdminTip'),
},
{
label: 'OAuth Token JSON',
name: 'config.credentials.google_tokens',
type: FormFieldType.Textarea,
required: true,
render: (fieldProps) => (
<GoogleDriveTokenField
value={fieldProps.value}
onChange={fieldProps.onChange}
placeholder='{ "token": "...", "refresh_token": "...", ... }'
/>
),
tooltip: t('setting.google_driveTokenTip'),
},
{
label: 'My Drive Emails',
name: 'config.my_drive_emails',
type: FormFieldType.Text,
required: true,
placeholder: 'user1@example.com,user2@example.com',
tooltip: t('setting.google_driveMyDriveEmailsTip'),
},
{
label: 'Shared Folder URLs',
name: 'config.shared_folder_urls',
type: FormFieldType.Textarea,
required: true,
placeholder:
'https://drive.google.com/drive/folders/XXXXX,https://drive.google.com/drive/folders/YYYYY',
tooltip: t('setting.google_driveSharedFoldersTip'),
},
// The fields below are intentionally disabled for now. Uncomment them when we
// reintroduce shared drive controls or advanced impersonation options.
// {
// label: 'Shared Drive URLs',
// name: 'config.shared_drive_urls',
// type: FormFieldType.Text,
// required: false,
// placeholder:
// 'Optional: comma-separated shared drive links if you want to include them.',
// },
// {
// label: 'Specific User Emails',
// name: 'config.specific_user_emails',
// type: FormFieldType.Text,
// required: false,
// placeholder:
// 'Optional: comma-separated list of users to impersonate (overrides defaults).',
// },
// {
// label: 'Include My Drive',
// name: 'config.include_my_drives',
// type: FormFieldType.Checkbox,
// required: false,
// defaultValue: true,
// },
// {
// label: 'Include Shared Drives',
// name: 'config.include_shared_drives',
// type: FormFieldType.Checkbox,
// required: false,
// defaultValue: false,
// },
// {
// label: 'Include “Shared with me”',
// name: 'config.include_files_shared_with_me',
// type: FormFieldType.Checkbox,
// required: false,
// defaultValue: false,
// },
// {
// label: 'Allow Images',
// name: 'config.allow_images',
// type: FormFieldType.Checkbox,
// required: false,
// defaultValue: false,
// },
{
label: '',
name: 'config.credentials.authentication_method',
type: FormFieldType.Text,
required: false,
hidden: true,
defaultValue: 'uploaded',
},
],
// [DataSourceKey.GOOGLE_DRIVE]: [
// {
// label: 'Primary Admin Email',
// name: 'config.credentials.google_primary_admin',
// type: FormFieldType.Text,
// required: true,
// placeholder: 'admin@example.com',
// tooltip: t('setting.google_drivePrimaryAdminTip'),
// },
// {
// label: 'OAuth Token JSON',
// name: 'config.credentials.google_tokens',
// type: FormFieldType.Textarea,
// required: true,
// render: (fieldProps) => (
// <GoogleDriveTokenField
// value={fieldProps.value}
// onChange={fieldProps.onChange}
// placeholder='{ "token": "...", "refresh_token": "...", ... }'
// />
// ),
// tooltip: t('setting.google_driveTokenTip'),
// },
// {
// label: 'My Drive Emails',
// name: 'config.my_drive_emails',
// type: FormFieldType.Text,
// required: true,
// placeholder: 'user1@example.com,user2@example.com',
// tooltip: t('setting.google_driveMyDriveEmailsTip'),
// },
// {
// label: 'Shared Folder URLs',
// name: 'config.shared_folder_urls',
// type: FormFieldType.Textarea,
// required: true,
// placeholder:
// 'https://drive.google.com/drive/folders/XXXXX,https://drive.google.com/drive/folders/YYYYY',
// tooltip: t('setting.google_driveSharedFoldersTip'),
// },
// // The fields below are intentionally disabled for now. Uncomment them when we
// // reintroduce shared drive controls or advanced impersonation options.
// // {
// // label: 'Shared Drive URLs',
// // name: 'config.shared_drive_urls',
// // type: FormFieldType.Text,
// // required: false,
// // placeholder:
// // 'Optional: comma-separated shared drive links if you want to include them.',
// // },
// // {
// // label: 'Specific User Emails',
// // name: 'config.specific_user_emails',
// // type: FormFieldType.Text,
// // required: false,
// // placeholder:
// // 'Optional: comma-separated list of users to impersonate (overrides defaults).',
// // },
// // {
// // label: 'Include My Drive',
// // name: 'config.include_my_drives',
// // type: FormFieldType.Checkbox,
// // required: false,
// // defaultValue: true,
// // },
// // {
// // label: 'Include Shared Drives',
// // name: 'config.include_shared_drives',
// // type: FormFieldType.Checkbox,
// // required: false,
// // defaultValue: false,
// // },
// // {
// // label: 'Include “Shared with me”',
// // name: 'config.include_files_shared_with_me',
// // type: FormFieldType.Checkbox,
// // required: false,
// // defaultValue: false,
// // },
// // {
// // label: 'Allow Images',
// // name: 'config.allow_images',
// // type: FormFieldType.Checkbox,
// // required: false,
// // defaultValue: false,
// // },
// {
// label: '',
// name: 'config.credentials.authentication_method',
// type: FormFieldType.Text,
// required: false,
// hidden: true,
// defaultValue: 'uploaded',
// },
// ],
};
export const DataSourceFormDefaultValues = {

View File

@ -65,7 +65,7 @@ export const ModelProviderCard: FC<IModelCardProps> = ({
};
return (
<div className={`w-full rounded-lg border border-border-default`}>
<div className={`w-full rounded-lg border border-border-button`}>
{/* Header */}
<div className="flex h-16 items-center justify-between p-4 cursor-pointer transition-colors">
<div className="flex items-center space-x-3">
@ -131,7 +131,7 @@ export const ModelProviderCard: FC<IModelCardProps> = ({
{item.llm.map((model) => (
<div
key={model.name}
className="flex items-center border-b border-border-default justify-between p-3 hover:bg-bg-card transition-colors"
className="flex items-center border-b-[0.5px] border-border-button justify-between p-3 hover:bg-bg-card transition-colors"
>
<div className="flex items-center space-x-3">
<span className="font-medium">

View File

@ -156,7 +156,7 @@ const SystemSetting = ({ onOk, loading }: IProps) => {
)}
</label>
<SelectWithSearch
triggerClassName="w-3/4"
triggerClassName="w-3/4 flex items-center"
allowClear={id !== 'llm_id'}
value={value}
options={options}
@ -175,7 +175,7 @@ const SystemSetting = ({ onOk, loading }: IProps) => {
{t('systemModelDescription')}
</div>
</div>
<div className="px-7 py-6 space-y-6 max-h-[70vh] overflow-y-auto border rounded-lg">
<div className="px-7 py-6 space-y-6 max-h-[70vh] overflow-y-auto border border-border-button rounded-lg">
{llmList.map((item) => (
<Items key={item.id} {...item} />
))}

View File

@ -122,7 +122,7 @@ export const AvailableModels: FC<{
{filteredModels.map((model) => (
<div
key={model.name}
className=" border border-border-default rounded-lg p-3 hover:bg-bg-input transition-colors group"
className=" border border-border-button rounded-lg p-3 hover:bg-bg-input transition-colors group"
>
<div className="flex items-center space-x-3 mb-3">
<LlmIcon name={model.name} imgClass="h-8 w-8 text-text-primary" />

View File

@ -11,7 +11,7 @@ export const UsedModel = ({
}) => {
const { factoryList, myLlmList: llmList, loading } = useSelectLlmList();
return (
<div className="flex flex-col w-full gap-4 mb-4">
<div className="flex flex-col w-full gap-5 mb-4">
<div className="text-text-primary text-2xl font-medium mb-2 mt-4">
{t('setting.addedModels')}
</div>

View File

@ -13,6 +13,7 @@ import {
import { useFetchTenantInfo } from '@/hooks/user-setting-hooks';
import { IAddLlmRequestBody } from '@/interfaces/request/llm';
import { getRealModelName } from '@/utils/llm-util';
import { useQueryClient } from '@tanstack/react-query';
import { useCallback, useState } from 'react';
import { ApiKeyPostBody } from '../interface';
@ -29,7 +30,7 @@ export const useSubmitApiKey = () => {
hideModal: hideApiKeyModal,
showModal: showApiKeyModal,
} = useSetModalState();
const queryClient = useQueryClient();
const onApiKeySavingOk = useCallback(
async (postBody: ApiKeyPostBody) => {
const ret = await saveApiKey({
@ -38,11 +39,12 @@ export const useSubmitApiKey = () => {
});
if (ret === 0) {
queryClient.invalidateQueries({ queryKey: ['llmList'] });
hideApiKeyModal();
setEditMode(false);
}
},
[hideApiKeyModal, saveApiKey, savingParams],
[hideApiKeyModal, saveApiKey, savingParams, queryClient],
);
const onShowApiKeyModal = useCallback(

View File

@ -193,9 +193,9 @@ const ModelProviders = () => {
[showApiKeyModal, showLlmAddingModal, ModalMap, detailedLlmList],
);
return (
<div className="flex w-full border-[0.5px] border-border-default rounded-lg relative ">
<div className="flex w-full border-[0.5px] border-border-button rounded-lg relative ">
<Spotlight />
<section className="flex flex-col gap-4 w-3/5 px-5 border-r border-border-button overflow-auto scrollbar-auto">
<section className="flex flex-col gap-4 w-3/5 px-5 border-r-[0.5px] border-border-button overflow-auto scrollbar-auto">
<SystemSetting
onOk={onSystemSettingSavingOk}
loading={saveSystemModelSettingLoading}

View File

@ -69,7 +69,7 @@ const ApiKeyModal = ({
return (
<Modal
title={editMode ? t('editModel') : t('modify')}
title={t('configureModelTitle')}
open={visible}
onOpenChange={(open) => !open && hideModal()}
onOk={handleOk}
@ -77,6 +77,7 @@ const ApiKeyModal = ({
confirmLoading={loading}
okText={t('save')}
cancelText={t('cancel')}
className="!w-[600px]"
>
<Form {...form}>
<div className="space-y-4 py-4">
@ -85,9 +86,11 @@ const ApiKeyModal = ({
rules={{ required: t('apiKeyMessage') }}
render={({ field }) => (
<FormItem>
<FormLabel className="text-sm font-medium text-text-primary">
<FormLabel
className="text-sm font-medium text-text-secondary"
required
>
{t('apiKey')}
<span className="ml-1 text-destructive">*</span>
</FormLabel>
<FormControl>
<Input