Skip to content

🐛 [Bug] Fixed the issue where the agent did not select the default large language model#1413

Merged
Phinease merged 14 commits intodevelopfrom
develop_wz_default_model_3
Oct 23, 2025
Merged

🐛 [Bug] Fixed the issue where the agent did not select the default large language model#1413
Phinease merged 14 commits intodevelopfrom
develop_wz_default_model_3

Conversation

@Zhi-a
Copy link
Contributor

@Zhi-a Zhi-a commented Oct 22, 2025

[Improvement] Select&Use system model by default #1335

  1. When creating a new Agent, the large language model defaults to the quickly configured model.
  2. Fixed an issue with existing Agents where the large language model was being read from the cache instead of the configuration.
  3. Describes how the Agent works and adds a drop-down list for the large language model.
  4. Fixed the issue where the agent name was repeated and the save button could not be clicked after changing it to the correct name.
20251023_141842.mp4

@Zhi-a Zhi-a force-pushed the develop_wz_default_model_3 branch 6 times, most recently from 261d791 to 06339a3 Compare October 22, 2025 03:03
@Zhi-a Zhi-a changed the title Develop wz default model 3 🐛 [Bug] Fixed the issue where the agent did not select the default large language model Oct 22, 2025
@Zhi-a Zhi-a force-pushed the develop_wz_default_model_3 branch from 06339a3 to aea6c9b Compare October 22, 2025 03:26
…e quickly configured model.

2. Fixed an issue with existing Agents where the large language model was being read from the cache instead of the configuration.
3. Describes how the Agent works and adds a drop-down list for the large language model.

Signed-off-by: Zhi Wang <928570418@qq.com>
@Zhi-a Zhi-a force-pushed the develop_wz_default_model_3 branch from aea6c9b to ccd2214 Compare October 22, 2025 03:28
…e quickly configured model.

2. Fixed an issue with existing Agents where the large language model was being read from the cache instead of the configuration.
3. Describes how the Agent works and adds a drop-down list for the large language model.

Signed-off-by: Zhi Wang <928570418@qq.com>
}
if (target) {
log.info("[PromptManager] Setting default Business Logic model:", target.displayName);
if (onModelSelect) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

359到365这一段状态更新逻辑在此段代码中重复了三次,建议提取为工具函数

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已解决

…e quickly configured model.

2. Fixed an issue with existing Agents where the large language model was being read from the cache instead of the configuration.
3. Describes how the Agent works and adds a drop-down list for the large language model.

Signed-off-by: Zhi Wang <928570418@qq.com>
@Zhi-a Zhi-a force-pushed the develop_wz_default_model_3 branch from c3dbfb3 to 9d07b67 Compare October 23, 2025 06:05
Zhi-a added 3 commits October 23, 2025 14:40
… could not be clicked after changing it to the correct name.

Signed-off-by: Zhi Wang <928570418@qq.com>
Signed-off-by: Zhi Wang <928570418@qq.com>
Signed-off-by: Zhi Wang <928570418@qq.com>
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
backend/services/agent_service.py 80.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Zhi-a added 2 commits October 23, 2025 17:22
Signed-off-by: Zhi Wang <928570418@qq.com>
Signed-off-by: Zhi Wang <928570418@qq.com>
@Phinease Phinease merged commit b4f9a7b into develop Oct 23, 2025
9 checks passed
@Zhi-a Zhi-a deleted the develop_wz_default_model_3 branch November 13, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants