assistant-sdk-python
assistant-sdk-python copied to clipboard
Updated buf to use tobytes() as tostring() is deprecated
Python v3.2 introduced tobytes() and kept the deprecated tostring() as an alias for tobytes()
This fix checks the current sys.version_info and chooses arr.tobytes() if the version is at least 3.2,
otherwise it uses arr.tostring()