Skip to content
The Chat Archive
grok-4-0709· xAI LMArena Human Preference 140K

class LitterboxUploader: hosturl =…

  1. User

    class LitterboxUploader: host_url = "https://litterbox.catbox.moe/resources/internals/api.php" @classmethod def upload_with_path(cls, path: str) -> str: file = open(path, "rb") try: data = { "reqtype": "fileupload", "time": "1h", } files = {"fileToUpload": ("video.mp4", file, "video/mp4")} response = requests.post(cls.host_url, data=data, files=files).content finally: file.close() return response.decode("utf-8") create same class for file.io

  2. Assistant
    import json
    
    class FileIoUploader:
        host_url = "https://file.io/"
        @classmethod
        def upload_with_path(cls, path: str) -> str:
            file = open(path, "rb")
            try:
                data = {
                    "expires": "1h",
                }
                files = {"file": ("video.mp4", file, "video/mp4")}
                response = requests.post(cls.host_url, data=data, files=files).content
            finally:
                file.close()
            resp = json.loads(response.decode("utf-8"))
            return resp["link"]
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.