Skip to content

Conversation

Stevo-G-Swag
Copy link

Optimize prompts for cost-efficiency across multiple files.

  • computer_use_demo/gui_agent/anthropic_agent.py

    • Remove unnecessary print statement.
  • computer_use_demo/gui_agent/planner/api_vlm_planner.py

    • Remove unnecessary newline.
  • computer_use_demo/gui_agent/planner/local_vlm_planner.py

    • Correct syntax error in dictionary.
    • Remove unnecessary newline.
  • computer_use_demo/gui_agent/llm_utils/oai.py

    • Remove unnecessary comments and debug statements.
    • Optimize prompt structure to minimize token usage.
  • computer_use_demo/gui_agent/llm_utils/qwen.py

    • Remove unnecessary comments and debug statements.
    • Optimize prompt structure to minimize token usage.
    • Implement is_image_path and encode_image functions.
  • computer_use_demo/gui_agent/llm_utils/run_llm.py

    • Add optimize_prompt function to minimize token usage.
    • Integrate optimize_prompt function into the main logic.
  • computer_use_demo/gui_agent/showui_agent.py

    • Remove unnecessary newline.
  • computer_use_demo/loop.py

    • Remove commented-out code and unnecessary newlines.

Optimize prompts for cost-efficiency across multiple files.

* **`computer_use_demo/gui_agent/anthropic_agent.py`**
  - Remove unnecessary print statement.

* **`computer_use_demo/gui_agent/planner/api_vlm_planner.py`**
  - Remove unnecessary newline.

* **`computer_use_demo/gui_agent/planner/local_vlm_planner.py`**
  - Correct syntax error in dictionary.
  - Remove unnecessary newline.

* **`computer_use_demo/gui_agent/llm_utils/oai.py`**
  - Remove unnecessary comments and debug statements.
  - Optimize prompt structure to minimize token usage.

* **`computer_use_demo/gui_agent/llm_utils/qwen.py`**
  - Remove unnecessary comments and debug statements.
  - Optimize prompt structure to minimize token usage.
  - Implement `is_image_path` and `encode_image` functions.

* **`computer_use_demo/gui_agent/llm_utils/run_llm.py`**
  - Add `optimize_prompt` function to minimize token usage.
  - Integrate `optimize_prompt` function into the main logic.

* **`computer_use_demo/gui_agent/showui_agent.py`**
  - Remove unnecessary newline.

* **`computer_use_demo/loop.py`**
  - Remove commented-out code and unnecessary newlines.
* **Tasks**
  - Define test task using pytest
  - Define build task to install requirements
  - Define launch task to run app.py
* **`computer_use_demo/gui_agent/llm_utils/run_llm.py`**
  - Import `run_qwen` from `.qwen`
  - Add `qwen` series support in `run_llm` function

* **`app.py`**
  - Add new logic for LLM to control handhelds
  - Add more models from big tech companies
  - Add SOTA features
  - Fix indentation error at line 599

* **`pyproject.toml`**
  - Add `testpaths` configuration

* **`tests`**
  - Add example test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant