Crokoking

Results 4 issues of Crokoking

Fix for Issue #97 The code was using Integer.toUnsignedLong for a short value which broke decoding for mid-sized packets.

When FrameDecoder determines the size of a medium-sized payload it uses Integer.toUnsignedLong() instead of Short.toUnsignedLong() potentially causing negative payload sizes and essentially breaking the connection.

The websocket standard allows for ping-packets with no data. But since the PingAgent uses 0 to determine that it doesn't need to send a pong it essentially ignores it. There...

**Describe the bug** When using the OpenAI streaming model with tool-parameters more complex than a string, the token-estimation system throws an exception. This seems to be caused by the default...

bug