Skip to content

Gson serialization #11

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

Merged
merged 6 commits into from
Mar 28, 2023
Merged

Gson serialization #11

merged 6 commits into from
Mar 28, 2023

Conversation

CJCrafter
Copy link
Owner

Removes the JSON constructor system and fully migrates to Google's GSON library. This PR makes it possible to save/parse requests/responses from JSON (Allowing you to save conversations, for example, between restarts).

// This gson is already configured to have all needed type adapters.
OpenAI.createGson()

Wiki examples coming soon

@CJCrafter CJCrafter merged commit f6ab06d into master Mar 28, 2023
@CJCrafter CJCrafter deleted the gson-serialization branch March 28, 2023 16:06
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