Skip to content

Conversation

wjquigsAZ
Copy link

Issue #, if available:
The playground attempts to save responses from the model, but some of the responses contain binary data that is not json serializable.
Description of changes:
Added changes to omit binary data.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@manoj-selvakumar5
Copy link
Collaborator

Hi @wjquigsAZ Thanks for the contribution! Instead of discarding the binary data, is there a way you can help us preserve that information while making it serializable?

@wjquigsAZ
Copy link
Author

You could base64 encode it, but I'm not sure how useful that would be. Also, you would probably want to limit the size of a b64-encoded response. In my application, the agent is responding with images, so having the actual image data in the response doesn't work for me. Instead I created a response object with a URL to the image.

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.

2 participants