Skip to content

Conversation

@c121914yu
Copy link
Collaborator

No description provided.

@gru-agent
Copy link
Contributor

gru-agent bot commented Aug 23, 2025

There is too much information in the pull request to test.

@cla-assistant
Copy link

cla-assistant bot commented Aug 23, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented Aug 23, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ c121914yu
✅ ctrlz526
✅ francismiko
❌ xqvvu
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

github-actions bot commented Aug 23, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.43% 13823 / 56569
🔵 Statements 24.43% 13823 / 56569
🔵 Functions 33.58% 405 / 1206
🔵 Branches 70.95% 1236 / 1742
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/global/core/ai/model.ts 80.28% 100% 0% 80.28% 58-78
packages/global/core/ai/provider.ts 85.71% 100% 60% 85.71% 68-69, 72-77
packages/global/core/ai/llm/utils.ts 85.71% 50% 100% 85.71% 3
packages/global/core/chat/adapt.ts 4.37% 100% 0% 4.37% 29-30, 33-37, 40-173, 175-377, 380-392, 395-415, 418-425
packages/global/core/chat/utils.ts 7.1% 100% 0% 7.1% 16-23, 27-34, 38-84, 88-120, 124-154, 157-168, 171-174, 177-193, 201-248
packages/global/core/workflow/runtime/utils.ts 22.9% 79.45% 18.75% 22.9% 24-32, 35-51, 53-67, 158-161, 166-167, 176-213, 216-227, 230-253, 256-279, 282-287, 295-434, 442-489, 517-617, 620-650, 654-676
packages/global/sdk/fastgpt-plugin.ts 100% 100% 100% 100%
packages/service/common/redis/cache.ts 36.17% 100% 0% 36.17% 22-39, 42-44, 48-53, 56-58
packages/service/core/ai/config.ts 25.92% 0% 0% 25.92% 5, 11-22, 25-34
packages/service/core/ai/model.ts 54.9% 60% 31.25% 54.9% 21-22, 25-27, 37-39, 43-45, 49-51, 54-61, 63-64
packages/service/core/ai/utils.ts 76.41% 93.18% 37.5% 76.41% 10-22, 26-37, 42-55, 136-142, 233-239, 301-307, 310-311
packages/service/core/ai/config/utils.ts 0% 100% 100% 0% 2-264
packages/service/core/ai/functions/createQuestionGuide.ts 0% 100% 100% 0% 2-76
packages/service/core/ai/functions/queryExtension.ts 16.8% 0% 0% 16.8% 114-233
packages/service/core/ai/llm/prompt.ts 100% 100% 100% 100%
packages/service/core/ai/llm/promptToolCall.ts 95.55% 96.55% 100% 95.55% 105-108
packages/service/core/ai/llm/request.ts 3.91% 100% 0% 3.91% 65-166, 178-375, 378-456, 484-552, 554-648
packages/service/core/app/controller.ts 0% 100% 100% 0% 2-237
packages/service/core/app/schema.ts 100% 100% 100% 100%
packages/service/core/app/plugin/controller.ts 5.54% 100% 0% 5.54% 60-463, 466-514, 517-518, 521-528, 531-592, 595-608
packages/service/core/app/tool/api.ts 32% 100% 0% 32% 5-23
packages/service/core/chat/favouriteApp/schema.ts 0% 0% 0% 0% 1-36
packages/service/core/chat/setting/schema.ts 0% 0% 0% 0% 1-57
packages/service/core/workflow/dispatch/constants.ts 100% 100% 0% 100%
packages/service/core/workflow/dispatch/index.ts 2.42% 100% 0% 2.42% 62-838, 842-877, 881-905
packages/service/core/workflow/dispatch/ai/chat.ts 6.68% 100% 0% 6.68% 65-461
packages/service/core/workflow/dispatch/ai/classifyQuestion.ts 9.7% 100% 0% 9.7% 37-103, 106-173
packages/service/core/workflow/dispatch/ai/extract.ts 5.8% 100% 0% 5.8% 50-160, 163-183, 186-285, 288-368
packages/service/core/workflow/dispatch/ai/agent/constants.ts 33.33% 100% 0% 33.33% 7-14
packages/service/core/workflow/dispatch/ai/agent/index.ts 6.92% 100% 0% 6.92% 40-266, 269-320, 327-369
packages/service/core/workflow/dispatch/dataset/search.ts 4.52% 100% 0% 4.52% 50-284
packages/service/core/workflow/dispatch/tools/queryExternsion.ts 13.55% 100% 0% 13.55% 25-82
packages/service/support/permission/app/auth.ts 72.46% 81.48% 66.66% 72.46% 23-41, 62-63, 73-74, 77-89, 92-96, 172-173
packages/service/support/wallet/usage/controller.ts 7.48% 100% 0% 7.48% 14-27, 30-70, 81-169, 172-197, 200-236, 239-279
packages/service/support/wallet/usage/utils.ts 8% 100% 0% 8% 4-33
packages/service/thirdProvider/doc2x/index.ts 4.3% 100% 0% 4.3% 18-235
packages/service/thirdProvider/fastgptPlugin/index.ts 100% 100% 100% 100%
packages/web/components/common/Icon/constants.ts 0% 100% 100% 0% 3-477
packages/web/hooks/useSafeTranslation.ts 0% 0% 0% 0% 1-25
projects/app/src/global/aiproxy/constants.ts 0% 100% 100% 0% 2-40
projects/app/src/pageComponents/chat/constants.ts 100% 100% 100% 100%
projects/app/src/pages/api/core/ai/optimizePrompt.ts 0% 100% 100% 0% 2-162
projects/app/src/pages/api/core/ai/model/test.ts 0% 100% 100% 0% 2-140
projects/app/src/pages/api/core/app/list.ts 0% 0% 0% 0% 1-233
projects/app/src/pages/api/core/app/version/publish.ts 0% 100% 100% 0% 2-118
projects/app/src/pages/api/core/chat/chatTest.ts 0% 100% 100% 0% 2-285
projects/app/src/pages/api/core/chat/feedback/updateUserFeedback.ts 0% 100% 100% 0% 2-81
projects/app/src/pages/api/core/dataset/collection/trainingDetail.ts 0% 0% 0% 0% 1-173
projects/app/src/pages/api/v1/chat/completions.ts 0% 100% 100% 0% 2-658
projects/app/src/pages/api/v2/chat/completions.ts 0% 100% 100% 0% 2-653
projects/app/src/service/core/dataset/queues/generateQA.ts 0% 0% 0% 0% 1-243
projects/app/src/service/support/mcp/utils.ts 48.42% 75.86% 75% 48.42% 57, 102, 140-141, 164, 173-325
projects/app/src/service/support/wallet/usage/push.ts 0% 0% 0% 0% 1-276
projects/app/src/web/common/utils/voice.ts 0% 100% 100% 0% 3-442
projects/app/src/web/core/app/api.ts 0% 0% 0% 0% 1-53
projects/app/src/web/core/chat/api.ts 0% 0% 0% 0% 1-150
projects/app/src/web/core/chat/context/useChatStore.ts 77.3% 90% 91.66% 77.3% 150-188, 192-193
Generated in workflow #1961 for commit b84f8bb by the Vitest Coverage Report Action

@github-actions
Copy link

github-actions bot commented Aug 23, 2025

Preview mcp_server Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_mcp_server_b84f8bbfee4b8f83f43a0c30b4086985d5ccfc8f

@github-actions
Copy link

github-actions bot commented Aug 23, 2025

Preview sandbox Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_sandbox_b84f8bbfee4b8f83f43a0c30b4086985d5ccfc8f

@github-actions
Copy link

github-actions bot commented Aug 23, 2025

Docs Preview:


🚀 FastGPT Document Preview Ready!

🔗 👀 Click here to visit preview

cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Aug 23, 2025

Preview fastgpt Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_b84f8bbfee4b8f83f43a0c30b4086985d5ccfc8f

cursor[bot]

This comment was marked as outdated.

@c121914yu
Copy link
Collaborator Author

@cursor review

cursor[bot]

This comment was marked as outdated.

});
// Dynamic input is stored in the dynamic key
if (input.canEdit && dynamicInput && params[dynamicInput.key]) {
params[dynamicInput.key][input.key] = valueTypeFormat(value, input.valueType);

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
user controlled input
.
xqvvu and others added 16 commits August 25, 2025 18:11
* chore: extract chat history and drawer; fix model selector

* feat: display favourite apps and make it configurable

* feat: favorite apps & quick apps with their own configuration

* fix: fix tab title and add loading state for searching

* fix: cascade delete favorite app and quick app while deleting relative app

* chore: make improvements

* fix: favourite apps ui

* fix: add permission for quick apps

* chore: fix permission & clear redundant code
* fix: add empty placeholder; fix app quick status; fix tag and layout

* chore: add tab query for the setting tabs

* chore: use `useConfirm` hook instead of `MyModal`
* feat: add LLM response processing functions, including the creation of stream-based and complete responses

* feat: add volta configuration for node and pnpm versions

* refactor: update LLM response handling and event structure in tool choice logic

* feat: update LLM response structure and integrate with tool choice logic

* refactor: clean up imports and remove unused streamResponse function in chat and toolChoice modules

* refactor: rename answer variable to answerBuffer for clarity in LLM response handling

* feat: enhance LLM response handling with tool options and integrate tools into chat and tool choice logic

* refactor: remove volta configuration from package.json

* refactor: reorganize LLM response types and ensure default values for token counts

* refactor: streamline LLM response handling by consolidating response structure and removing redundant checks

* refactor: enhance LLM response handling by consolidating tool options and streamlining event callbacks

* fix: build error

* refactor: update tool type definitions for consistency in tool handling
@c121914yu c121914yu merged commit 830eb19 into main Aug 25, 2025
9 of 10 checks passed
@c121914yu c121914yu deleted the v4.12.2-dev branch August 25, 2025 11:19
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.

5 participants