Skip to content

Conversation

15089677014
Copy link
Contributor

@15089677014 15089677014 commented Mar 13, 2025

  • 在推荐问题的数据库记录中添加用户码字段
  • 通过 gpts_app.user_code 获取当前用户码并存储

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
image

Closes #2426

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
image

Snapshots:

Include snapshots for easier review.

Checklist:

recommend_question

  • [ x] My code follows the style guidelines of this project
  • [x ] I have already rebased the commits and make the commit message conform to the project standard.
  • [x ] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

- 在推荐问题的数据库记录中添加用户码字段
- 通过 gpts_app.user_code 获取当前用户码并存储
@github-actions github-actions bot added the enhancement New feature or request label Mar 13, 2025
@15089677014 15089677014 changed the title feat(dbgpt-serve):Agent推荐问题修复保存错误问题增加用户码参数 feat(dbgpt-serve):Agent recommendation problem fixed, save error issue added, user code parameter added Mar 13, 2025
-Add logic to delete chat records in the clear method of the Message Interface - add delete_chat_cessage method in GptsMessages Dao and GptsConversationsDao
-Implemented the function of clearing Agent chat records
@15089677014
Copy link
Contributor Author

#2426
这个问题也一并修复了

@fangyinc
Copy link
Collaborator

Hi @15089677014 .
Thank you for your contribution, but there's still a small code formatting issue. You can run the command make fmt in the project directory to format the code. Feel free to reach out if you have any questions. Thanks again!

… modify deletion methods in GptsConversationsDB and GptsMessages DB to simplify query statements

-Update the clear method in the Message and adjust the import order
-Unified use of double quotation marks in SQL queries
@15089677014
Copy link
Contributor Author

Thanks! The formatting is fixed now. Appreciate the review!

@fangyinc fangyinc changed the title feat(dbgpt-serve):Agent recommendation problem fixed, save error issue added, user code parameter added feat(dbgpt-serve): Agent fixes and parameter additions Mar 13, 2025
Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@fangyinc fangyinc left a comment

Choose a reason for hiding this comment

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

LGTM.

@fangyinc fangyinc merged commit ccfce5d into eosphoros-ai:main Mar 13, 2025
2 checks passed
FOkvj pushed a commit to FOkvj/DB-GPT that referenced this pull request Mar 23, 2025
…2457)

Co-authored-by: 刘家星 <liujiaxing@fulan.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Chat历史清除,并不会真正的清除所有对话历史。
4 participants