Skip to content

Conversation

@ocss884
Copy link
Member

@ocss884 ocss884 commented Jan 12, 2024

Description

Pls read #421 for description

Motivation and Context

close #421

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds core functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (update in the documentation)
  • Example (update in the folder of example)

Implemented Tasks

  • Subtask 1
  • Subtask 2
  • Subtask 3

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • I have read the CONTRIBUTION guide. (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly. (required for a bug fix or a new feature)
  • I have updated the documentation accordingly.

@ocss884 ocss884 requested a review from lightaime January 12, 2024 07:19
@ocss884 ocss884 mentioned this pull request Jan 12, 2024
3 tasks
@ocss884 ocss884 added Model Related to backend models API Modifies the API Message Related to camel messages labels Jan 13, 2024
"Now start to give me instructions one by one. "
"Only reply with Instruction and Input."))
role_name=self.assistant_sys_msg.role_name, content=first_msg)
user_msg = BaseMessage.make_user_message(
Copy link
Member

Choose a reason for hiding this comment

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

It seems we are still repeating the system message for the assistant agent, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems we are still repeating the system message for the assistant agent, right?

No, actually only the content here matters. assistant_sys_msg.role_name is more of a placeholder since during step each agent knows how to recode the role of incoming message correctly. I just keep the originally code of this part (well it could be confusing I should say).

Copy link
Member

Choose a reason for hiding this comment

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

I meant this PR seems to be not yet solving the consecutive user msg bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

I meant this PR seems to be not yet solving the consecutive user msg bug.

I'm so sorry about my mistake. It should be fixed now after deleting the .step.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 14, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 15, 2024
Copy link
Member

@lightaime lightaime left a comment

Choose a reason for hiding this comment

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

Thanks @ocss884. I renamed some of the variables and fixed some docstrings in passing.

@dosubot dosubot bot added the lgtm label Jan 15, 2024
@lightaime lightaime merged commit c7ec055 into master Jan 15, 2024
@lightaime lightaime deleted the fix/init-chat-duplicate-msg branch January 15, 2024 04:28
ZackZikaiXiao pushed a commit to ZackZikaiXiao/camel that referenced this pull request Mar 23, 2025
…i#424)

Co-authored-by: lig <guohao.li@kaust.edu.sa>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Modifies the API Message Related to camel messages Model Related to backend models size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Merged or Closed

Development

Successfully merging this pull request may close these issues.

[BUG] fix duplicate system message

3 participants