INNER CODE UNIT · Python

run

instavm/clickclickclick · main.py:39

def run(task_prompt, platform, planner_model, finder_model, image_quality):
    """
    Execute a task with the given TASK_PROMPT using the specified
    platform, planner model, and finder model.
    """
    task_prompt = " ".join(task_prompt)

    c = get_config(platform, planner_model, finder_model)

    if platform == "osx":
        executor = MacExecutor()
    else:
        executor = AndroidExecutor()

    # Set image quality for executor
    executor.image_quality = max(1, min(100, image_quality))

    if planner_model == "openai":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…