Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix _append_oai_message #1195

Closed
wants to merge 12 commits into from
Closed

fix _append_oai_message #1195

wants to merge 12 commits into from

Conversation

yiranwu0
Copy link
Contributor

Why are these changes needed?

Fix bugs in function _append_oai_message

Related issue number

Checks

Copy link
Collaborator

@sonichi sonichi left a comment

Choose a reason for hiding this comment

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

I have some questions.

flaml/autogen/agentchat/responsive_agent.py Outdated Show resolved Hide resolved
flaml/autogen/agentchat/responsive_agent.py Outdated Show resolved Hide resolved
return False
if role is not None:
if oai_message.get("role", "") == "function" and role != "function":
print(f"Warning: Attempt to overwrite role 'function' with {role}. Rejected.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tested? This will insert a warning in the conversation will may confuse readers. I don't know why we want to print this message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, I will remove the warning add add a comment.

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
@yiranwu0 yiranwu0 closed this Dec 4, 2023
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.

None yet

2 participants