webLLM

Object Structure

  • method: "web_llm"

  • callback: "dataSync"

  • url: null

  • initialUrl: string

  • inputEvent: array[] => object<params?>

    • Selector: <selector?, property?, value?>

    • Selector with Event: <selector?, property?, newEvent?, options?>

    • Sleep: <sleep?, value?>

  • streamAdapter: string

    • xhr

    • fetch

  • streamOverrideDelay: number

  • streamType: string

  • streamFormat: string

    • json

    • string

  • streamFilter: object

    • url: array

    • method: array

    • contentType: array

  • streamCompleted: object

    • setTimeout: number

    • requestReadyState: number

    • requestException: string

  • streamParser: array[] => object<act=?, params?>

    • isString

    • isArray

    • isObject

    • isNotNull

    • isNotEq

    • minChar <value?>

    • maxChar <value?>

    • trim

    • split <separator?, limit?, index?>

    • replace <find?, replace?>

    • replaceAll <find?, replace?>

    • toJSON

    • toString

    • search <text?>

    • indexOf <text?>

    • regexpMatch <regexp?, global?>

    • regexpReplace <regexp?, global?, replace?>

    • getValue <key?>

{
    "request": {
        "method": "web_llm",
        "callback": "dataSync",
        "initialUrl": "https://chatgpt.com/", 
        "url": null,
        "inputEvent": [
            {"selector": "#textarea", "property": "value", "value": "$SOURCE_TEXT"},
            {"sleep": 100},
            {"selector": "button", "property": "click"},
        ],
        "streamAdapter": "fetch",
        "streamOverrideDelay": 0,
        "streamFilter": {},
        "streamFormat": "string",
        "streamType": "append",
        "streamCompleted": {
            "setTimeout": 2500,
            "requestException": "AbortError"
        },
        "streamParser": [
            [
                {"act": "isString"},
                {"act": "search", "text": "data:"},
                {"act": "replace", "find": "data:", "replace": ""},
                {"act": "toJSON"},
                {"act": "isObject"},
                {"act": "getValue", "key": "v"},
                {"act": "isString"},
                {"act": "isNotNull"}
            ],
            [...],
            [...]
        ]
    }
}

Last updated