Skip to content

update model provider#328

Merged
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test
Dec 27, 2025
Merged

update model provider#328
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test

Conversation

@c121914yu
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 27, 2025 14:30
@c121914yu c121914yu merged commit 64f8f74 into labring:main Dec 27, 2025
6 checks passed
@github-actions
Copy link

Build Successful - Preview Images for this PR:

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

Changed packages:
None

Copy link
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 updates model provider configurations across OpenAI, MiniMax, and ChatGLM providers. The changes include adjusting context window limits for existing models, adding new model variants, and expanding TTS (text-to-speech) support for MiniMax.

  • Reduced maxContext and quoteMaxToken limits for OpenAI gpt-5.x model variants from 400,000 to 250,000 and 200,000 respectively
  • Added three new MiniMax LLM models (M2.1, M2, M1) with reasoning capabilities and three new TTS models (speech-02-turbo, speech-02-hd, speech-01-hd) with extensive voice options
  • Introduced ChatGLM glm-4.7 model with reasoning support and 200K context window

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
modules/model/provider/OpenAI/index.ts Reduced maxContext from 400K to 250K and quoteMaxToken from 400K to 200K for gpt-5.2, gpt-5.1, gpt-5, gpt-5-mini, and gpt-5-nano models
modules/model/provider/MiniMax/index.ts Added three new LLM models (MiniMax-M2.1, M2, M1) and three TTS models (speech-02-turbo, speech-02-hd, speech-01-hd) with 46 voice options each; updated MiniMax-Text-01 configuration and removed abab6.5s-chat model
modules/model/provider/ChatGLM/index.ts Added new glm-4.7 model with 200K context, 130K max tokens, reasoning capability, and JSON object response format support
modules/model/constants.ts Reordered MiniMax and Ernie entries in ModelProviderMap (no functional change)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

model: 'MiniMax-Text-01',
maxContext: 1000000,
maxTokens: 40000,
quoteMaxToken: 90000,
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

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

The quoteMaxToken value for MiniMax-Text-01 appears inconsistent with the pattern used for MiniMax-M1. Both models have maxContext of 1000000, but MiniMax-M1 has quoteMaxToken of 900000 (90% of maxContext) while MiniMax-Text-01 has only 90000 (9% of maxContext). This seems like it may be a typo - consider verifying if this should be 900000 instead of 90000 to align with the M1 model configuration.

Suggested change
quoteMaxToken: 90000,
quoteMaxToken: 900000,

Copilot uses AI. Check for mistakes.
FinleyGe pushed a commit to LBP97541135/fastgpt-plugin that referenced this pull request Jan 4, 2026
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.

1 participant