-
Notifications
You must be signed in to change notification settings - Fork 493
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
fix _append_oai_message #1195
Conversation
There was a problem hiding this 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.
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.") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Why are these changes needed?
Fix bugs in function
_append_oai_message
Related issue number
Checks