Skip to content

perf: init tool#319

Merged
c121914yu merged 7 commits intolabring:mainfrom
c121914yu:new-tool
Dec 16, 2025
Merged

perf: init tool#319
c121914yu merged 7 commits intolabring:mainfrom
c121914yu:new-tool

Conversation

@c121914yu
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 03:47
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 16, 2025

Build Successful - Preview Images for this PR:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:81c6570a32e1c9cd2ca7e2f32b0d65598643b35d

Changed packages:
None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread modules/tool/loadToolProd.ts
Comment thread modules/model/provider/OpenAI/index.ts
@c121914yu c121914yu merged commit 8378e0f into labring:main Dec 16, 2025
2 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants