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

Handle undefined additional_information in agent protocol api implementation #697

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

ATheorell
Copy link
Collaborator

Got errors when using the API for the AutoGPT benchmarks, because the GETs dont include the additional_information property. This PR fixes that issue.

Copy link
Contributor

@pbharrin pbharrin left a comment

Choose a reason for hiding this comment

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

Good catch, I think we can reduce this to a one line edit if we make line 44 like this:
additional_properties=task.additional_input.__root__ if task.additional_input is not None else {},

That way step.additional_properties will be an empty dictionary and we can keep the rest of the code the same.

@pbharrin pbharrin merged commit 1ec4c82 into gpt-engineer-org:main Sep 14, 2023
4 checks passed
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