HF RL Explorer

Need a way to return a raw (non-serialized) response from a REST endpoint without using streaming

Need a way to return a raw (non-serialized) response from a REST endpoint without using streaming: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). Currently any value returned from a REST handler goes through createResponse, which serializes it as JSON (or HTML if the client…

The task

Currently any value returned from a REST handler goes through _createResponse, which serializes it as JSON (or HTML if the client asks for it via Accept). That's fine for the normal case, but it means there's no way to return a response that should be sent through verbatim —…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.