← Về thư mục
openai4s/share/protocol.py
- ProtocolError · class · L77-L78 — class ProtocolError(ValueError)
- encode_control · function · L82-L90 — def encode_control(obj: dict[str, Any]) -> bytes
- decode_control · function · L93-L111 — def decode_control(payload: bytes) -> dict[str, Any]
- encode_data · function · L115-L127 — def encode_data( request_id: int, chunk: bytes, *, end: bool = False, abort: bool = False, ) -> bytes
- decode_data · function · L130-L141 — def decode_data(payload: bytes) -> tuple[int, int, bytes]
- filter_request_headers · function · L151-L159 — def filter_request_headers(headers: Any) -> dict[str, str]