perf: init tool#319
Merged
c121914yu merged 7 commits intolabring:mainfrom Dec 16, 2025
Merged
Conversation
|
✅ Build Successful - Preview Images for this PR: Changed packages: |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes the tool initialization process by separating cache refresh from data loading, and improves performance monitoring. The changes ensure the system tool cache is refreshed before loading tool data, moving from a fully parallel initialization to a more controlled sequential-then-parallel approach.
Key changes:
- Modified tool initialization to refresh cache keys before loading cached data
- Changed cache busting strategy from content hash to file size in tool loader
- Enhanced logging with performance timing and improved clarity in messages
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| runtime/index.ts | Separates cache refresh from data loading for system tools, ensuring cache key is refreshed before parallel data loading |
| modules/tool/loadToolProd.ts | Replaces MD5 content hashing with file size for cache busting and adds performance timing logs |
| modules/tool/init.ts | Updates log messages for better clarity ("Find tool" vs "Load tool", "Load tools finish") |
| modules/tool/api/upload/delete.ts | Removes debug log from tool deletion entry point |
| modules/model/provider/OpenAI/index.ts | Adds duplicate gpt-5.1 model configuration to the OpenAI provider |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
FinleyGe
pushed a commit
to LBP97541135/fastgpt-plugin
that referenced
this pull request
Jan 4, 2026
* add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2
FinleyGe
added a commit
that referenced
this pull request
Jan 5, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (#326) * Revert "fix: oracle db operation (#326)" (#327) This reverts commit 21ec59a. * update model provider (#328) * feat: wecom corp token tool (#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 6, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 6, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 8, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 8, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 8, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
to FinleyGe/fastgpt-plugin
that referenced
this pull request
Jan 12, 2026
* feat: add WeCom Smart Sheet toolset * perf: init tool (labring#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (labring#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (labring#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (labring#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (labring#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (labring#326) * Revert "fix: oracle db operation (labring#326)" (labring#327) This reverts commit 21ec59a. * update model provider (labring#328) * feat: wecom corp token tool (labring#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
FinleyGe
added a commit
that referenced
this pull request
Jan 12, 2026
* feat: wecom corp token tool (#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * add WeCom Smart Sheet toolset (#329) * feat: add WeCom Smart Sheet toolset * perf: init tool (#319) * add gpt5.2 * perf: init tool * perf: init tool * perf: init tool * rename gpt 5.2 * rename gpt 5.2 * rename gpt 5.2 * add init batch (#320) * add gpt5.2 * add init * remove invalid code * Add gemini3 model (#323) * add gpt5.2 * remove invalid code * gemini3 * perf: mongo and redis reconnect (#325) * perf: mongo and redis reconnect * perf: mongo and redis reconnect * perf: redis * feat:markdownTransform tool indent&ordered&indent (#322) * feat:markdownTransform tool indent&ordered&indent * chore: add version description --------- Co-authored-by: Finley Ge <finleyge@fastgpt.io> * fix: oracle db operation (#326) * Revert "fix: oracle db operation (#326)" (#327) This reverts commit 21ec59a. * update model provider (#328) * feat: wecom corp token tool (#330) * feat: get wecom corp id tool * feat: update wecomCorpId readme * chore: restore the index.ts file to template raw * chore: update wecom logo * fix: remove wecom corpId tool secret input * fix: remove useless params for get wecom auth token --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Finley Ge <finleyge@fastgpt.io> Co-authored-by: Roy <whoeverimf5@gmail.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> * chore: edit env template * fix: invoke * fix: invoke in main thread --------- Co-authored-by: LBP97541135 <15535198819@163.com> Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Peter-FrontEnd <74163300+Peter-FrontEnd@users.noreply.github.com> Co-authored-by: Roy <whoeverimf5@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.