PriNova / codypy

Python Binding for Cody Agent from Sourcegraph: JSON-RPC over TCP or stdio. Establish seamless connectivity with the Cody Agent using this Python binding. Leverage the power of JSON-RPC over TCP or stdio for efficient communication.
MIT License
19 stars 6 forks source link

fix: Convert JSON message to bytes in _send_jsonrpc_request #11

Closed PriNova closed 5 months ago

PriNova commented 5 months ago

The _send_jsonrpc_request function in messaging.py has been updated to handle unicode input from the user, such as non-ASCII characters. The following changes have been made:

These modifications ensure that the function can properly send messages containing unicode characters to the server without any encoding issues and closes issue Handling non-ascii characters #10 .