mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-11 02:04:59 +08:00
V4.11.0 features (#5270)
* feat: workflow catch error (#5220) * feat: error catch * feat: workflow catch error * perf: add catch error to node * feat: system tool error catch * catch error * fix: ts * update doc * perf: training queue code (#5232) * doc * perf: training queue code * Feat: 优化错误提示与重试逻辑 (#5192) * feat: 批量重试异常数据 & 报错信息国际化 - 新增“全部重试”按钮,支持批量重试所有训练异常数据 - 报错信息支持国际化,常见错误自动映射为 i18n key - 相关文档和 i18n 资源已同步更新 * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism * feat: add retry_failed i18n key * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism * feat: enhance error message and retry mechanism : 5 * feat: enhance error message and retry mechanism : 6 * feat: enhance error message and retry mechanism : 7 * feat: enhance error message and retry mechanism : 8 * perf: catch chat error * perf: copy hook (#5246) * perf: copy hook * doc * doc * add app evaluation (#5083) * add app evaluation * fix * usage * variables * editing condition * var ui * isplus filter * migrate code * remove utils * name * update type * build * fix * fix * fix * delete comment * fix * perf: eval code * eval code * eval code * feat: ttfb time in model log * Refactor chat page (#5253) * feat: update side bar layout; add login and logout logic at chat page * refactor: encapsulate login logic and reuse it in `LoginModal` and `Login` page * chore: improve some logics and comments * chore: improve some logics * chore: remove redundant side effect; add translations --------- Co-authored-by: Archer <545436317@qq.com> * perf: chat page code * doc * perf: provider redirect * chore: ui improvement (#5266) * Fix: SSE * Fix: SSE * eval pagination (#5264) * eval scroll pagination * change eval list to manual pagination * number * fix build * fix * version doc (#5267) * version doc * version doc * doc * feat: eval model select * config eval model * perf: eval detail modal ui * doc * doc * fix: chat store reload * doc --------- Co-authored-by: colnii <1286949794@qq.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: 酒川户 <76519998+chuanhu9@users.noreply.github.com>
This commit is contained in:
@@ -20,11 +20,11 @@ export const iconPaths = {
|
||||
'common/addLight': () => import('./icons/common/addLight.svg'),
|
||||
'common/addUser': () => import('./icons/common/addUser.svg'),
|
||||
'common/administrator': () => import('./icons/common/administrator.svg'),
|
||||
'common/audit': () => import('./icons/common/audit.svg'),
|
||||
'common/alipay': () => import('./icons/common/alipay.svg'),
|
||||
'common/app': () => import('./icons/common/app.svg'),
|
||||
'common/arrowLeft': () => import('./icons/common/arrowLeft.svg'),
|
||||
'common/arrowRight': () => import('./icons/common/arrowRight.svg'),
|
||||
'common/audit': () => import('./icons/common/audit.svg'),
|
||||
'common/backFill': () => import('./icons/common/backFill.svg'),
|
||||
'common/backLight': () => import('./icons/common/backLight.svg'),
|
||||
'common/billing': () => import('./icons/common/billing.svg'),
|
||||
@@ -47,6 +47,7 @@ export const iconPaths = {
|
||||
'common/editor/resizer': () => import('./icons/common/editor/resizer.svg'),
|
||||
'common/ellipsis': () => import('./icons/common/ellipsis.svg'),
|
||||
'common/enable': () => import('./icons/common/enable.svg'),
|
||||
'common/error': () => import('./icons/common/error.svg'),
|
||||
'common/errorFill': () => import('./icons/common/errorFill.svg'),
|
||||
'common/file/move': () => import('./icons/common/file/move.svg'),
|
||||
'common/fileNotFound': () => import('./icons/common/fileNotFound.svg'),
|
||||
@@ -111,9 +112,9 @@ export const iconPaths = {
|
||||
'common/tickFill': () => import('./icons/common/tickFill.svg'),
|
||||
'common/toolkit': () => import('./icons/common/toolkit.svg'),
|
||||
'common/trash': () => import('./icons/common/trash.svg'),
|
||||
'common/upRightArrowLight': () => import('./icons/common/upRightArrowLight.svg'),
|
||||
'common/uploadFileFill': () => import('./icons/common/uploadFileFill.svg'),
|
||||
'common/upperRight': () => import('./icons/common/upperRight.svg'),
|
||||
'common/upRightArrowLight': () => import('./icons/common/upRightArrowLight.svg'),
|
||||
'common/userInfo': () => import('./icons/common/userInfo.svg'),
|
||||
'common/variable': () => import('./icons/common/variable.svg'),
|
||||
'common/viewLight': () => import('./icons/common/viewLight.svg'),
|
||||
@@ -150,8 +151,6 @@ export const iconPaths = {
|
||||
'core/app/simpleMode/tts': () => import('./icons/core/app/simpleMode/tts.svg'),
|
||||
'core/app/simpleMode/variable': () => import('./icons/core/app/simpleMode/variable.svg'),
|
||||
'core/app/simpleMode/whisper': () => import('./icons/core/app/simpleMode/whisper.svg'),
|
||||
'core/app/templates/TranslateRobot': () =>
|
||||
import('./icons/core/app/templates/TranslateRobot.svg'),
|
||||
'core/app/templates/animalLife': () => import('./icons/core/app/templates/animalLife.svg'),
|
||||
'core/app/templates/chinese': () => import('./icons/core/app/templates/chinese.svg'),
|
||||
'core/app/templates/divination': () => import('./icons/core/app/templates/divination.svg'),
|
||||
@@ -161,6 +160,8 @@ export const iconPaths = {
|
||||
'core/app/templates/plugin-dalle': () => import('./icons/core/app/templates/plugin-dalle.svg'),
|
||||
'core/app/templates/plugin-feishu': () => import('./icons/core/app/templates/plugin-feishu.svg'),
|
||||
'core/app/templates/stock': () => import('./icons/core/app/templates/stock.svg'),
|
||||
'core/app/templates/TranslateRobot': () =>
|
||||
import('./icons/core/app/templates/TranslateRobot.svg'),
|
||||
'core/app/toolCall': () => import('./icons/core/app/toolCall.svg'),
|
||||
'core/app/ttsFill': () => import('./icons/core/app/ttsFill.svg'),
|
||||
'core/app/type/httpPlugin': () => import('./icons/core/app/type/httpPlugin.svg'),
|
||||
@@ -179,7 +180,6 @@ export const iconPaths = {
|
||||
'core/app/variable/input': () => import('./icons/core/app/variable/input.svg'),
|
||||
'core/app/variable/select': () => import('./icons/core/app/variable/select.svg'),
|
||||
'core/app/variable/textarea': () => import('./icons/core/app/variable/textarea.svg'),
|
||||
'core/chat/QGFill': () => import('./icons/core/chat/QGFill.svg'),
|
||||
'core/chat/backText': () => import('./icons/core/chat/backText.svg'),
|
||||
'core/chat/cancelSpeak': () => import('./icons/core/chat/cancelSpeak.svg'),
|
||||
'core/chat/chatFill': () => import('./icons/core/chat/chatFill.svg'),
|
||||
@@ -196,6 +196,7 @@ export const iconPaths = {
|
||||
'core/chat/fileSelect': () => import('./icons/core/chat/fileSelect.svg'),
|
||||
'core/chat/finishSpeak': () => import('./icons/core/chat/finishSpeak.svg'),
|
||||
'core/chat/imgSelect': () => import('./icons/core/chat/imgSelect.svg'),
|
||||
'core/chat/QGFill': () => import('./icons/core/chat/QGFill.svg'),
|
||||
'core/chat/quoteFill': () => import('./icons/core/chat/quoteFill.svg'),
|
||||
'core/chat/quoteSign': () => import('./icons/core/chat/quoteSign.svg'),
|
||||
'core/chat/recordFill': () => import('./icons/core/chat/recordFill.svg'),
|
||||
@@ -203,6 +204,7 @@ export const iconPaths = {
|
||||
'core/chat/sendLight': () => import('./icons/core/chat/sendLight.svg'),
|
||||
'core/chat/setTopLight': () => import('./icons/core/chat/setTopLight.svg'),
|
||||
'core/chat/sideLine': () => import('./icons/core/chat/sideLine.svg'),
|
||||
'core/chat/sidebar/logout': () => import('./icons/core/chat/sidebar/logout.svg'),
|
||||
'core/chat/speaking': () => import('./icons/core/chat/speaking.svg'),
|
||||
'core/chat/stopSpeech': () => import('./icons/core/chat/stopSpeech.svg'),
|
||||
'core/chat/think': () => import('./icons/core/chat/think.svg'),
|
||||
@@ -283,13 +285,12 @@ export const iconPaths = {
|
||||
'core/workflow/redo': () => import('./icons/core/workflow/redo.svg'),
|
||||
'core/workflow/revertVersion': () => import('./icons/core/workflow/revertVersion.svg'),
|
||||
'core/workflow/runError': () => import('./icons/core/workflow/runError.svg'),
|
||||
'core/workflow/running': () => import('./icons/core/workflow/running.svg'),
|
||||
'core/workflow/runSkip': () => import('./icons/core/workflow/runSkip.svg'),
|
||||
'core/workflow/runSuccess': () => import('./icons/core/workflow/runSuccess.svg'),
|
||||
'core/workflow/running': () => import('./icons/core/workflow/running.svg'),
|
||||
'core/workflow/template/BI': () => import('./icons/core/workflow/template/BI.svg'),
|
||||
'core/workflow/template/FileRead': () => import('./icons/core/workflow/template/FileRead.svg'),
|
||||
'core/workflow/template/aiChat': () => import('./icons/core/workflow/template/aiChat.svg'),
|
||||
'core/workflow/template/baseChart': () => import('./icons/core/workflow/template/baseChart.svg'),
|
||||
'core/workflow/template/BI': () => import('./icons/core/workflow/template/BI.svg'),
|
||||
'core/workflow/template/bing': () => import('./icons/core/workflow/template/bing.svg'),
|
||||
'core/workflow/template/bocha': () => import('./icons/core/workflow/template/bocha.svg'),
|
||||
'core/workflow/template/codeRun': () => import('./icons/core/workflow/template/codeRun.svg'),
|
||||
@@ -306,6 +307,7 @@ export const iconPaths = {
|
||||
'core/workflow/template/extractJson': () =>
|
||||
import('./icons/core/workflow/template/extractJson.svg'),
|
||||
'core/workflow/template/fetchUrl': () => import('./icons/core/workflow/template/fetchUrl.svg'),
|
||||
'core/workflow/template/FileRead': () => import('./icons/core/workflow/template/FileRead.svg'),
|
||||
'core/workflow/template/formInput': () => import('./icons/core/workflow/template/formInput.svg'),
|
||||
'core/workflow/template/getTime': () => import('./icons/core/workflow/template/getTime.svg'),
|
||||
'core/workflow/template/google': () => import('./icons/core/workflow/template/google.svg'),
|
||||
@@ -335,12 +337,12 @@ export const iconPaths = {
|
||||
'core/workflow/template/textConcat': () =>
|
||||
import('./icons/core/workflow/template/textConcat.svg'),
|
||||
'core/workflow/template/toolCall': () => import('./icons/core/workflow/template/toolCall.svg'),
|
||||
'core/workflow/template/toolParams': () =>
|
||||
import('./icons/core/workflow/template/toolParams.svg'),
|
||||
'core/workflow/template/toolkitActive': () =>
|
||||
import('./icons/core/workflow/template/toolkitActive.svg'),
|
||||
'core/workflow/template/toolkitInactive': () =>
|
||||
import('./icons/core/workflow/template/toolkitInactive.svg'),
|
||||
'core/workflow/template/toolParams': () =>
|
||||
import('./icons/core/workflow/template/toolParams.svg'),
|
||||
'core/workflow/template/userSelect': () =>
|
||||
import('./icons/core/workflow/template/userSelect.svg'),
|
||||
'core/workflow/template/variable': () => import('./icons/core/workflow/template/variable.svg'),
|
||||
@@ -389,6 +391,7 @@ export const iconPaths = {
|
||||
key: () => import('./icons/key.svg'),
|
||||
keyPrimary: () => import('./icons/keyPrimary.svg'),
|
||||
loading: () => import('./icons/loading.svg'),
|
||||
mcp: () => import('./icons/mcp.svg'),
|
||||
menu: () => import('./icons/menu.svg'),
|
||||
minus: () => import('./icons/minus.svg'),
|
||||
'modal/AddClb': () => import('./icons/modal/AddClb.svg'),
|
||||
@@ -400,10 +403,10 @@ export const iconPaths = {
|
||||
'modal/selectSource': () => import('./icons/modal/selectSource.svg'),
|
||||
'modal/setting': () => import('./icons/modal/setting.svg'),
|
||||
'modal/teamPlans': () => import('./icons/modal/teamPlans.svg'),
|
||||
'model/BAAI': () => import('./icons/model/BAAI.svg'),
|
||||
'model/alicloud': () => import('./icons/model/alicloud.svg'),
|
||||
'model/aws': () => import('./icons/model/aws.svg'),
|
||||
'model/azure': () => import('./icons/model/azure.svg'),
|
||||
'model/BAAI': () => import('./icons/model/BAAI.svg'),
|
||||
'model/baichuan': () => import('./icons/model/baichuan.svg'),
|
||||
'model/chatglm': () => import('./icons/model/chatglm.svg'),
|
||||
'model/claude': () => import('./icons/model/claude.svg'),
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" >
|
||||
<path d="M15.75 9C15.75 5.27208 12.7279 2.25 9 2.25C5.27208 2.25 2.25 5.27208 2.25 9C2.25 12.7279 5.27208 15.75 9 15.75C12.7279 15.75 15.75 12.7279 15.75 9ZM9.00781 11.25L9.08398 11.2539C9.46227 11.2922 9.75781 11.6116 9.75781 12C9.75781 12.3884 9.46227 12.7078 9.08398 12.7461L9.00781 12.75H9C8.58579 12.75 8.25 12.4142 8.25 12C8.25 11.5858 8.58579 11.25 9 11.25H9.00781ZM8.25 9V6C8.25 5.58579 8.58579 5.25 9 5.25C9.41421 5.25 9.75 5.58579 9.75 6V9C9.75 9.41421 9.41421 9.75 9 9.75C8.58579 9.75 8.25 9.41421 8.25 9ZM17.25 9C17.25 13.5563 13.5563 17.25 9 17.25C4.44365 17.25 0.75 13.5563 0.75 9C0.75 4.44365 4.44365 0.75 9 0.75C13.5563 0.75 17.25 4.44365 17.25 9Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 738 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.2133 3.05118C7.04659 3.00651 6.82084 3.00007 6.07507 3.00007H5.70007C5.16563 3.00007 4.80235 3.00048 4.52003 3.01974C4.24444 3.03855 4.10117 3.07278 4.00105 3.11425C3.63351 3.26649 3.3415 3.55851 3.18925 3.92605C3.14778 4.02617 3.11355 4.16944 3.09474 4.44503C3.07548 4.72735 3.07507 5.09063 3.07507 5.62507V12.3751C3.07507 12.9095 3.07548 13.2728 3.09474 13.5551C3.11355 13.8307 3.14778 13.974 3.18925 14.0741C3.3415 14.4416 3.63351 14.7337 4.00105 14.8859C4.10117 14.9274 4.24444 14.9616 4.52003 14.9804C4.80235 14.9997 5.16563 15.0001 5.70007 15.0001H6.07507C6.82084 15.0001 7.04659 14.9936 7.2133 14.949C7.73094 14.8103 8.13526 14.4059 8.27396 13.8883C8.31863 13.7216 8.32507 13.4958 8.32507 12.7501C8.32507 12.3359 8.66086 12.0001 9.07507 12.0001C9.48929 12.0001 9.82508 12.3359 9.82508 12.7501C9.82508 12.785 9.82509 12.8194 9.82511 12.8533C9.82543 13.4498 9.82568 13.8928 9.72285 14.2765C9.44545 15.3118 8.63681 16.1205 7.60153 16.3979C7.21779 16.5007 6.7748 16.5004 6.17826 16.5001C6.14436 16.5001 6.10998 16.5001 6.07507 16.5001H5.67437C5.17203 16.5001 4.75738 16.5001 4.41792 16.4769C4.06596 16.4529 3.74038 16.4015 3.42702 16.2717C2.69194 15.9672 2.10792 15.3832 1.80344 14.6481C1.67364 14.3348 1.62224 14.0092 1.59822 13.6572C1.57506 13.3178 1.57507 12.9031 1.57507 12.4008V5.59937C1.57507 5.09703 1.57506 4.68237 1.59822 4.34292C1.62224 3.99095 1.67364 3.66538 1.80344 3.35202C2.10792 2.61694 2.69194 2.03292 3.42702 1.72843C3.74038 1.59864 4.06596 1.54724 4.41792 1.52322C4.75738 1.50006 5.17203 1.50007 5.67437 1.50007L6.07507 1.50007C6.10998 1.50007 6.14437 1.50005 6.17826 1.50004C6.7748 1.49971 7.21779 1.49947 7.60153 1.60229C8.63681 1.8797 9.44545 2.68834 9.72285 3.72362C9.82568 4.10735 9.82543 4.55035 9.82511 5.14689C9.82509 5.18078 9.82508 5.21517 9.82508 5.25007C9.82508 5.66429 9.48929 6.00007 9.07507 6.00007C8.66086 6.00007 8.32507 5.66429 8.32507 5.25007C8.32507 4.50431 8.31863 4.27855 8.27396 4.11184C8.13526 3.59421 7.73094 3.18988 7.2133 3.05118ZM11.5447 4.71974C11.8376 4.42685 12.3125 4.42685 12.6054 4.71974L16.3554 8.46974C16.6483 8.76264 16.6483 9.23751 16.3554 9.5304L12.6054 13.2804C12.3125 13.5733 11.8376 13.5733 11.5447 13.2804C11.2519 12.9875 11.2519 12.5126 11.5447 12.2197L14.0144 9.75007H6.82507C6.41086 9.75007 6.07507 9.41429 6.07507 9.00007C6.07507 8.58586 6.41086 8.25007 6.82507 8.25007H14.0144L11.5447 5.7804C11.2519 5.48751 11.2519 5.01264 11.5447 4.71974Z" fill="#667085"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
3
packages/web/components/common/Icon/icons/mcp.svg
Normal file
3
packages/web/components/common/Icon/icons/mcp.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.2988 2.62975C9.67752 2.02461 8.67009 2.02459 8.04873 2.62976L2.04825 8.47367C1.84113 8.6754 1.50532 8.6754 1.29819 8.47367C1.09107 8.27194 1.09107 7.94491 1.29819 7.74318L7.29866 1.89927C8.33425 0.890689 10.0133 0.890661 11.0489 1.89926C11.6623 2.49665 11.9124 3.3139 11.7992 4.09056C12.5966 3.98026 13.4358 4.22381 14.0492 4.8212L14.0495 4.82148L14.0804 4.85166C15.1159 5.86027 15.116 7.49553 14.0804 8.5041L8.65357 13.7894C8.58455 13.8566 8.58451 13.9656 8.65353 14.0328L9.7679 15.1182C9.975 15.3199 9.975 15.647 9.76787 15.8487C9.56074 16.0504 9.22494 16.0504 9.01781 15.8487L7.9035 14.7634C7.42022 14.2927 7.42022 13.5296 7.9035 13.0589L13.3304 7.7736C13.9517 7.16846 13.9518 6.1873 13.3304 5.58216L13.3301 5.58188L13.2992 5.55173C12.6778 4.94665 11.6703 4.94658 11.0489 5.55173L6.57984 9.90423L6.57708 9.90693L6.51732 9.96509C6.31023 10.1668 5.97439 10.1668 5.7673 9.96509C5.56016 9.76336 5.56016 9.43632 5.76726 9.23459L10.2988 4.82123C10.9202 4.21608 10.9202 3.2349 10.2988 2.62975ZM9.54885 4.09074C9.75595 3.88901 9.75595 3.56197 9.54885 3.36024C9.34172 3.15852 9.00592 3.15852 8.79879 3.36024L4.36093 7.68229C3.32531 8.69089 3.32535 10.3261 4.3609 11.3348C5.39652 12.3433 7.07559 12.3433 8.11121 11.3348L12.5491 7.01268C12.7562 6.81095 12.7562 6.48392 12.5491 6.28219C12.3419 6.08046 12.0061 6.0805 11.799 6.28219L7.36118 10.6043C6.73979 11.2094 5.73236 11.2094 5.111 10.6043C4.4896 9.99908 4.48964 9.01793 5.111 8.41278L9.54885 4.09074Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -4,11 +4,18 @@ import MyIcon from '../../Icon';
|
||||
|
||||
const SearchInput = (props: InputProps) => {
|
||||
return (
|
||||
<InputGroup alignItems="center" size={'sm'}>
|
||||
<InputLeftElement>
|
||||
<MyIcon name="common/searchLight" w="16px" color={'myGray.500'} />
|
||||
</InputLeftElement>
|
||||
<Input fontSize="sm" bg={'myGray.25'} {...props} />
|
||||
<InputGroup position={'relative'} maxW={props.maxW}>
|
||||
<MyIcon
|
||||
position={'absolute'}
|
||||
zIndex={10}
|
||||
left={2.5}
|
||||
name={'common/searchLight'}
|
||||
w={4}
|
||||
top={'50%'}
|
||||
transform={'translateY(-50%)'}
|
||||
color={'myGray.600'}
|
||||
/>
|
||||
<Input fontSize="sm" bg={'myGray.25'} pl={8} {...props} />
|
||||
</InputGroup>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user