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: accept assistant with output_model when delegating tasks to a team #1135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nlenepveu
Copy link
Contributor

@nlenepveu nlenepveu commented Sep 19, 2024

Issue

When delegating a task to an assistant, the function call is encapsulated in a Message object. However, if the assistant utilizes an output_model, the validation for the Message object fails because the content attribute expects a string, but the output_model does not meet that requirement.

Fix

To resolve this, the output_model can be serialized into a JSON string before constructing the Message object, ensuring it passes the validation.

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.

1 participant