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

Make generate.format return the corresponding object #630

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Feb 10, 2024

generate.format currently returns a string representation of the Python object that was passed to the function. In this PR we create and return the corresponding object from the generated string.

Closes #589

@rlouf rlouf merged commit e36065c into outlines-dev:main Feb 10, 2024
5 checks passed
@rlouf rlouf deleted the format-output branch February 10, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate.format returns a string instead of the corresponding type
1 participant