-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Feature/UI tars integration #1664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/UI tars integration #1664
Conversation
Implement core UI-TARS vision module with lazy loading for heavy dependencies to handle resource constraints gracefully. Module includes: - UiTarsVision class with load(), query(), and identify_elements() methods - Lazy imports for torch and transformers to handle resource constraints - Support for UI-TARS-1.5-7B model for GUI interaction
Enhance vision module to support both Moondream and UI-TARS: - Add ui_tars attribute and load_ui_tars parameter to load() method - Extend query() method with use_ui_tars parameter for switching between models - Maintain backward compatibility with existing Moondream implementation
Improve browser automation with UI-TARS integration: - Add use_ui_tars flag (enabled by default) for UI-TARS control - Modify analyze_page() method to use UI-TARS for visual analysis of web pages - Maintain compatibility with existing Perplexity.ai search functionality
Include UI-TARS dependencies in pyproject.toml: - Add accelerate and bitsandbytes for enhanced browser control - Configure ui-tars extras group with required dependencies - Maintain existing dependency structure and compatibility
Provide comprehensive documentation and examples: - Quick start guide for UI-TARS features - Example test script demonstrating UI-TARS browser functionality - Integration verification report documenting successful implementation
Implement thorough testing for UI-TARS functionality: - Comprehensive test suite covering various UI-TARS features - Minimal test for basic functionality verification - Simple test for quick validation - Integration verification script for end-to-end testing
Create deployment scripts for easy installation: - Windows batch script for portable installation - Unix shell script for portable installation - Dockerfile for containerized deployment with UI-TARS support - Docker Compose configuration for orchestration with GPU support
…pt Orchestration Markup Language integration with structured prompting, templating engine, and agent orchestration features
executiveusa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pauli Was Here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request integrates UI-TARS-1.5-7B (a vision-language model for GUI interaction) and POML (Prompt Orchestration Markup Language) into Open Interpreter to enhance browser control and agent capabilities.
Key changes:
- Adds UI-TARS vision module for enhanced browser/GUI understanding
- Integrates POML for structured prompt orchestration
- Includes comprehensive test scripts, documentation, and deployment configurations
Reviewed Changes
Copilot reviewed 29 out of 30 changed files in this pull request and generated 23 comments.
Show a summary per file
| File | Description |
|---|---|
| interpreter/core/computer/vision/ui_tars/ui_tars_vision.py | New UI-TARS vision module for GUI element identification |
| interpreter/core/computer/vision/vision.py | Enhanced vision module with UI-TARS integration and query routing |
| interpreter/core/computer/browser/browser.py | Browser module updated to use UI-TARS for page analysis |
| interpreter/core/computer/poml.py | New POML module for structured prompting and template rendering |
| interpreter/core/computer/computer.py | Computer API extended to include POML module |
| pyproject.toml | Added UI-TARS and POML dependencies with new extras groups |
| README.md | CRITICAL: Contains massive duplication (40+ repeated sections) |
| examples/poml_agent_example.py | Contains duplicated content in second half |
| docs/README.md | Contains duplicated content |
| docs/mint.json | Invalid JSON due to duplicate footerSocials |
| .gitignore | Contains duplicate ignore rules |
| test_ui_tars_*.py | Test scripts for verifying UI-TARS integration |
| build-portable.*, Dockerfile.ui-tars, docker-compose.yml | Deployment configurations for UI-TARS support |
| Various documentation files | Integration guides and verification reports |
Comments suppressed due to low confidence (1)
interpreter/core/computer/vision/vision.py:218
- This statement is unreachable.
return answer
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <h1 align="center">● Open Interpreter</h1> | ||
| > Not working? Read our [setup guide](https://docs.openinterpreter.com/getting-started/setup). | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ```shell | ||
| interpreter | ||
| ``` | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| **Open Interpreter** lets LLMs run code (Python, Javascript, Shell, and more) locally. You can chat with Open Interpreter through a ChatGPT-like interface in your terminal by running `$ interpreter` after installing. | ||
|
|
||
| This provides a natural-language interface to your computer's general-purpose capabilities: | ||
|
|
||
| - Create and edit photos, videos, PDFs, etc. | ||
| - Control a Chrome browser to perform research | ||
| - Plot, clean, and analyze large datasets | ||
| - ...etc. | ||
|
|
||
| **⚠️ Note: You'll be asked to approve code before it's run.** | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ## Demo | ||
|
|
||
| https://github.com/OpenInterpreter/open-interpreter/assets/63927363/37152071-680d-4423-9af3-64836a6f7b60 | ||
|
|
||
| #### An interactive demo is also available on Google Colab: | ||
|
|
||
| [](https://colab.research.google.com/drive/1WKmRXZgsErej2xUriKzxrEAXdxMSgWbb?usp=sharing) | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| #### Along with an example voice interface, inspired by _Her_: | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| [](https://colab.research.google.com/drive/1NojYGHDgxH6Y1G1oxThEBBb2AtyODBIK) | ||
| <br> | ||
|
|
||
| ## Quick Start | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```shell | ||
| pip install open-interpreter | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| ### Terminal | ||
|
|
||
| After installation, simply run `interpreter`: | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ```shell | ||
| interpreter | ||
| ``` | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ### Python | ||
| <br> | ||
| ```python | ||
| from interpreter import interpreter | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| interpreter.chat("Plot AAPL and META's normalized stock prices") # Executes a single command | ||
| interpreter.chat() # Starts an interactive chat | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ### GitHub Codespaces | ||
|
|
||
| Press the `,` key on this repository's GitHub page to create a codespace. After a moment, you'll receive a cloud virtual machine environment pre-installed with open-interpreter. You can then start interacting with it directly and freely confirm its execution of system commands without worrying about damaging the system. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| ## Comparison to ChatGPT's Code Interpreter | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| OpenAI's release of [Code Interpreter](https://openai.com/blog/chatgpt-plugins#code-interpreter) with GPT-4 presents a fantastic opportunity to accomplish real-world tasks with ChatGPT. | ||
| <br> | ||
|
|
||
| However, OpenAI's service is hosted, closed-source, and heavily restricted: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| - No internet access. | ||
| - [Limited set of pre-installed packages](https://wfhbrian.com/mastering-chatgpts-code-interpreter-list-of-python-packages/). | ||
| - 100 MB maximum upload, 120.0 second runtime limit. | ||
| - State is cleared (along with any generated files or links) when the environment dies. | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| --- | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| Open Interpreter overcomes these limitations by running in your local environment. It has full access to the internet, isn't restricted by time or file size, and can utilize any package or library. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| This combines the power of GPT-4's Code Interpreter with the flexibility of your local development environment. | ||
| <br> | ||
| ## Commands | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| **Update:** The Generator Update (0.1.5) introduced streaming: | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ```python | ||
| message = "What operating system are we on?" | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| for chunk in interpreter.chat(message, display=False, stream=True): | ||
| print(chunk) | ||
| ``` | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ### Interactive Chat | ||
| <br> | ||
|
|
||
| To start an interactive chat in your terminal, either run `interpreter` from the command line: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```shell | ||
| interpreter | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| Or `interpreter.chat()` from a .py file: | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ```python | ||
| interpreter.chat() | ||
| ``` | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| **You can also stream each chunk:** | ||
| <br> | ||
| ```python | ||
| message = "What operating system are we on?" | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| for chunk in interpreter.chat(message, display=False, stream=True): | ||
| print(chunk) | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ### Programmatic Chat | ||
|
|
||
| For more precise control, you can pass messages directly to `.chat(message)`: | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| ```python | ||
| interpreter.chat("Add subtitles to all videos in /videos.") | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| # ... Streams output to your terminal, completes task ... | ||
| <br> | ||
|
|
||
| interpreter.chat("These look great but can you make the subtitles bigger?") | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| # ... | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| ### Start a New Chat | ||
|
|
||
| In Python, Open Interpreter remembers conversation history. If you want to start fresh, you can reset it: | ||
|
|
||
| ```python | ||
| interpreter.messages = [] | ||
| ``` | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ### Save and Restore Chats | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| `interpreter.chat()` returns a List of messages, which can be used to resume a conversation with `interpreter.messages = messages`: | ||
| <br> | ||
| ```python | ||
| messages = interpreter.chat("My name is Killian.") # Save messages to 'messages' | ||
| interpreter.messages = [] # Reset interpreter ("Killian" will be forgotten) | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| interpreter.messages = messages # Resume chat from 'messages' ("Killian" will be remembered) | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ### Customize System Message | ||
|
|
||
| You can inspect and configure Open Interpreter's system message to extend its functionality, modify permissions, or give it more context. | ||
|
|
||
| ```python | ||
| interpreter.system_message += """ | ||
| Run shell commands with -y so the user doesn't have to confirm them. | ||
| """ | ||
| print(interpreter.system_message) | ||
| ``` | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| ### Change your Language Model | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| Open Interpreter uses [LiteLLM](https://docs.litellm.ai/docs/providers/) to connect to hosted language models. | ||
| <br> | ||
|
|
||
| You can change the model by setting the model parameter: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```shell | ||
| interpreter --model gpt-3.5-turbo | ||
| interpreter --model claude-2 | ||
| interpreter --model command-nightly | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| In Python, set the model on the object: | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ```python | ||
| interpreter.llm.model = "gpt-3.5-turbo" | ||
| ``` | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| [Find the appropriate "model" string for your language model here.](https://docs.litellm.ai/docs/providers/) | ||
| <br> | ||
| ### Running Open Interpreter locally | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| #### Terminal | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| Open Interpreter can use OpenAI-compatible server to run models locally. (LM Studio, jan.ai, ollama etc) | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| Simply run `interpreter` with the api_base URL of your inference server (for LM studio it is `http://localhost:1234/v1` by default): | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ```shell | ||
| interpreter --api_base "http://localhost:1234/v1" --api_key "fake_key" | ||
| ``` | ||
| <br> | ||
|
|
||
| Alternatively you can use Llamafile without installing any third party software just by running | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```shell | ||
| interpreter --local | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| for a more detailed guide check out [this video by Mike Bird](https://www.youtube.com/watch?v=CEs51hGWuGU?si=cN7f6QhfT4edfG5H) | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| **How to run LM Studio in the background.** | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| 1. Download [https://lmstudio.ai/](https://lmstudio.ai/) then start it. | ||
| 2. Select a model then click **↓ Download**. | ||
| 3. Click the **↔️** button on the left (below 💬). | ||
| 4. Select your model at the top, then click **Start Server**. | ||
| <br> | ||
| Once the server is running, you can begin your conversation with Open Interpreter. | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| > **Note:** Local mode sets your `context_window` to 3000, and your `max_tokens` to 1000. If your model has different requirements, set these parameters manually (see below). | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| #### Python | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| Our Python package gives you more control over each setting. To replicate and connect to LM Studio, use these settings: | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ```python | ||
| from interpreter import interpreter | ||
| <br> | ||
|
|
||
| interpreter.offline = True # Disables online features like Open Procedures | ||
| interpreter.llm.model = "openai/x" # Tells OI to send messages in OpenAI's format | ||
| interpreter.llm.api_key = "fake_key" # LiteLLM, which we use to talk to LM Studio, requires this | ||
| interpreter.llm.api_base = "http://localhost:1234/v1" # Point this at any OpenAI compatible server | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| interpreter.chat() | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| #### Context Window, Max Tokens | ||
|
|
||
| You can modify the `max_tokens` and `context_window` (in tokens) of locally running models. | ||
|
|
||
| For local mode, smaller context windows will use less RAM, so we recommend trying a much shorter window (~1000) if it's failing / if it's slow. Make sure `max_tokens` is less than `context_window`. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh8 <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| ```shell | ||
| interpreter --local --max_tokens 1000 --context_window 3000 | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ### Verbose mode | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| To help you inspect Open Interpreter we have a `--verbose` mode for debugging. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| You can activate verbose mode by using its flag (`interpreter --verbose`), or mid-chat: | ||
| <br> | ||
|
|
||
| ```shell | ||
| $ interpreter | ||
| ... | ||
| > %verbose true <- Turns on verbose mode | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| > %verbose false <- Turns off verbose mode | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ### Interactive Mode Commands | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| In the interactive mode, you can use the below commands to enhance your experience. Here's a list of available commands: | ||
| <br> | ||
| **Available Commands:** | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| - `%verbose [true/false]`: Toggle verbose mode. Without arguments or with `true` it | ||
| enters verbose mode. With `false` it exits verbose mode. | ||
| - `%reset`: Resets the current session's conversation. | ||
| - `%undo`: Removes the previous user message and the AI's response from the message history. | ||
| - `%tokens [prompt]`: (_Experimental_) Calculate the tokens that will be sent with the next prompt as context and estimate their cost. Optionally calculate the tokens and estimated cost of a `prompt` if one is provided. Relies on [LiteLLM's `cost_per_token()` method](https://docs.litellm.ai/docs/completion/token_usage#2-cost_per_token) for estimated costs. | ||
| - `%help`: Show the help message. | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ### Configuration / Profiles | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| Open Interpreter allows you to set default behaviors using `yaml` files. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| This provides a flexible way to configure the interpreter without changing command-line arguments every time. | ||
| <br> | ||
|
|
||
| Run the following command to open the profiles directory: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| interpreter --profiles | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| You can add `yaml` files there. The default profile is named `default.yaml`. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| #### Multiple Profiles | ||
| <br> | ||
| Open Interpreter supports multiple `yaml` files, allowing you to easily switch between configurations: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| interpreter --profile my_profile.yaml | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| ## Sample FastAPI Server | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| The generator update enables Open Interpreter to be controlled via HTTP REST endpoints: | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```python | ||
| # server.py | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| from fastapi import FastAPI | ||
| from fastapi.responses import StreamingResponse | ||
| from interpreter import interpreter | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| app = FastAPI() | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| @app.get("/chat") | ||
| def chat_endpoint(message: str): | ||
| def event_stream(): | ||
| for result in interpreter.chat(message, stream=True): | ||
| yield f"data: {result}\n\n" | ||
| <br> | ||
| return StreamingResponse(event_stream(), media_type="text/event-stream") | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| @app.get("/history") | ||
| def history_endpoint(): | ||
| return interpreter.messages | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ```shell | ||
| pip install fastapi uvicorn | ||
| uvicorn server:app --reload | ||
| <br> | ||
|
|
||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| You can also start a server identical to the one above by simply running `interpreter.server()`. | ||
| <br> | ||
| ## Android | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| The step-by-step guide for installing Open Interpreter on your Android device can be found in the [open-interpreter-termux repo](https://github.com/MikeBirdTech/open-interpreter-termux). | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| ## Safety Notice | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| Since generated code is executed in your local environment, it can interact with your files and system settings, potentially leading to unexpected outcomes like data loss or security risks. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| **⚠️ Open Interpreter will ask for user confirmation before executing code.** | ||
| <br> | ||
|
|
||
| You can run `interpreter -y` or set `interpreter.auto_run = True` to bypass this confirmation, in which case: | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| - Be cautious when requesting commands that modify files or system settings. | ||
| - Watch Open Interpreter like a self-driving car, and be prepared to end the process by closing your terminal. | ||
| - Consider running Open Interpreter in a restricted environment like Google Colab or Replit. These environments are more isolated, reducing the risks of executing arbitrary code. | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| There is **experimental** support for a [safe mode](https://github.com/OpenInterpreter/open-interpreter/blob/main/docs/SAFE_MODE.md) to help mitigate some risks. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| ## How Does it Work? | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| Open Interpreter equips a [function-calling language model](https://platform.openai.com/docs/guides/gpt/function-calling) with an `exec()` function, which accepts a `language` (like "Python" or "JavaScript") and `code` to run. | ||
| <br> | ||
| We then stream the model's messages, code, and your system's outputs to the terminal as Markdown. | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| # Access Documentation Offline | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| The full [documentation](https://docs.openinterpreter.com/) is accessible on-the-go without the need for an internet connection. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| [Node](https://nodejs.org/en) is a pre-requisite: | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| - Version 18.17.0 or any later 18.x.x version. | ||
| - Version 20.3.0 or any later 20.x.x version. | ||
| - Any version starting from 21.0.0 onwards, with no upper limit specified. | ||
| <br> | ||
|
|
||
| Install [Mintlify](https://mintlify.com/): | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| ```bash | ||
| npm i -g mintlify@latest | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| Change into the docs directory and run the appropriate command: | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| ```bash | ||
| # Assuming you're at the project's root directory | ||
| cd ./docs | ||
| <br> | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| # Run the documentation server | ||
| mintlify dev | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| A new browser window should open. The documentation will be available at [http://localhost:3000](http://localhost:3000) as long as the documentation server is running. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
|
|
||
| # Contributing | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
| Thank you for your interest in contributing! We welcome involvement from the community. | ||
| <br> | ||
|
|
||
| Please see our [contributing guidelines](https://github.com/OpenInterpreter/open-interpreter/blob/main/docs/CONTRIBUTING.md) for more details on how to get involved. | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
|
|
||
| # Roadmap | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
| Visit [our roadmap](https://github.com/OpenInterpreter/open-interpreter/blob/main/docs/ROADMAP.md) to preview the future of Open Interpreter. | ||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh84z"> | ||
| <img alt="Discord" src="https://img.shields.io/discord/1146610656779440188?logo=discord&style=flat&logoColor=white"/></a> | ||
| <a href="docs/README_JA.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a> | ||
| <a href="docs/README_ZH.md"><img src="https://img.shields.io/badge/文档-中文版-white.svg" alt="ZH doc"/></a> | ||
| <a href="docs/README_ES.md"> <img src="https://img.shields.io/badge/Español-white.svg" alt="ES doc"/></a> | ||
| <a href="docs/README_UK.md"><img src="https://img.shields.io/badge/Українська-white.svg" alt="UK doc"/></a> | ||
| <a href="docs/README_IN.md"><img src="https://img.shields.io/badge/Hindi-white.svg" alt="IN doc"/></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/static/v1?label=license&message=AGPL&color=white&style=flat" alt="License"/></a> | ||
| <br> | ||
| <br><a href="https://0ggfznkwh4j.typeform.com/to/G21i9lJ2">Get early access to the desktop app</a> | <a href="https://docs.openinterpreter.com/">Documentation</a><br> | ||
| </p> | ||
| **Note**: This software is not affiliated with OpenAI. | ||
| > [!NOTE] | ||
| > **Open Interpreter 1.0** is almost here. | ||
|  | ||
| <br> | ||
| > Having access to a junior programmer working at the speed of your fingertips ... can make new workflows effortless and efficient, as well as open the benefits of programming to new audiences. | ||
| > | ||
| > — _OpenAI's Code Interpreter Release_ | ||
| <img alt="local_explorer" src="https://github.com/OpenInterpreter/open-interpreter/assets/63927363/d941c3b4-b5ad-4642-992c-40edf31e2e7a"> | ||
| <br> | ||
| ``` | ||
| <h1 align="center">● Open Interpreter</h1> | ||
|
|
||
| <p align="center"> | ||
| <a href="https://discord.gg/Hvz9Axh8 |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README.md file contains massive duplication. The entire header section (lines 25-1347) is repeated approximately 40+ times, creating a file over 1300 lines. This appears to be an unintentional copy-paste error that should be removed, keeping only one copy of the header content.
| main()""" | ||
| Example script demonstrating POML integration with Open Interpreter agents. | ||
| """ | ||
|
|
||
| from interpreter import interpreter | ||
|
|
||
| def main(): | ||
| print("Open Interpreter POML Agent Example") | ||
| print("=" * 40) | ||
|
|
||
| # Check if POML is available | ||
| if not interpreter.computer.poml.is_available(): | ||
| print("Error: POML is not available. Please install it with: pip install poml") | ||
| return | ||
|
|
||
| print("✓ POML is available and integrated") | ||
|
|
||
| # Example 1: Create a data analysis agent prompt | ||
| print("\n1. Creating a Data Analysis Agent Prompt") | ||
| data_analysis_prompt = interpreter.computer.poml.create_agent_prompt( | ||
| agent_type="data_analyst", | ||
| objective="Analyze the provided sales data and identify key trends", | ||
| context={ | ||
| "dataset": "Q1_Sales_2024.csv", | ||
| "columns": "date, product, revenue, region, customer_segment", | ||
| "time_period": "January - March 2024" | ||
| }, | ||
| instructions=[ | ||
| "Load and validate the sales data", | ||
| "Calculate total revenue by region", | ||
| "Identify top performing products", | ||
| "Detect seasonal trends in sales", | ||
| "Generate a summary report with insights" | ||
| ] | ||
| ) | ||
|
|
||
| print("Generated prompt:") | ||
| print(data_analysis_prompt) | ||
|
|
||
| # Example 2: Create a web research agent prompt | ||
| print("\n2. Creating a Web Research Agent Prompt") | ||
| research_prompt = interpreter.computer.poml.create_agent_prompt( | ||
| agent_type="web_researcher", | ||
| objective="Research the latest developments in AI-powered coding assistants", | ||
| context={ | ||
| "sources": "tech news websites, research papers, GitHub repositories", | ||
| "focus_areas": "new features, performance improvements, adoption rates", | ||
| "timeframe": "last 6 months" | ||
| }, | ||
| instructions=[ | ||
| "Search for recent articles about AI coding assistants", | ||
| "Identify key features released in the last 6 months", | ||
| "Compare performance benchmarks if available", | ||
| "Summarize adoption trends in the developer community", | ||
| "Provide a comprehensive analysis report" | ||
| ] | ||
| ) | ||
|
|
||
| print("Generated prompt:") | ||
| print(research_prompt) | ||
|
|
||
| # Example 3: Custom template creation | ||
| print("\n3. Creating a Custom POML Template") | ||
|
|
||
| custom_template_content = """ | ||
| <code_review> | ||
| <task>{{task_description}}</task> | ||
| <code_language>{{language}}</code_language> | ||
| <review_criteria> | ||
| {{#each criteria}} | ||
| <criterion>{{this}}</criterion> | ||
| {{/each}} | ||
| </review_criteria> | ||
| <output_format> | ||
| Provide feedback in the following format: | ||
| 1. Overall assessment | ||
| 2. Specific issues found | ||
| 3. Suggestions for improvement | ||
| 4. Code quality rating (1-10) | ||
| </output_format> | ||
| </code_review> | ||
| """ | ||
|
|
||
| custom_template = interpreter.computer.poml.create_template( | ||
| "code_review_agent", | ||
| custom_template_content.strip() | ||
| ) | ||
|
|
||
| if custom_template: | ||
| print("✓ Custom template created successfully") | ||
|
|
||
| # Render the custom template | ||
| rendered_template = interpreter.computer.poml.render_template(custom_template, { | ||
| "task_description": "Review Python script for web scraping functionality", | ||
| "language": "Python", | ||
| "criteria": [ | ||
| "Code readability and structure", | ||
| "Error handling implementation", | ||
| "Performance optimization", | ||
| "Security considerations", | ||
| "Documentation quality" | ||
| ] | ||
| }) | ||
|
|
||
| print("Rendered custom template:") | ||
| print(rendered_template) | ||
| else: | ||
| print("✗ Failed to create custom template") | ||
|
|
||
| if __name__ == "__main__": | ||
| main() No newline at end of file |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file contains duplicated content. Lines 111-221 are an exact duplicate of lines 1-110 (with a missing docstring on line 111). This duplication should be removed.
| - [License](../LICENSE)# Open Interpreter Documentation | ||
|
|
||
| Welcome to the Open Interpreter documentation. This documentation covers all aspects of using and extending Open Interpreter. | ||
|
|
||
| ## Getting Started | ||
|
|
||
| - [Quick Start Guide](../QUICK_START_GUIDE.md) | ||
| - [Setup Instructions](getting-started/setup.md) | ||
| - [Basic Usage](getting-started/basic-usage.md) | ||
|
|
||
| ## Core Concepts | ||
|
|
||
| - [Computer API](computer/README.md) | ||
| - [Language Models](language-models/README.md) | ||
| - [Code Execution](code-execution/README.md) | ||
| - [Agents and Prompt Orchestration](agents.md) <!-- Added reference to agents.md --> | ||
| - [Settings](settings/README.md) | ||
|
|
||
| ## Advanced Features | ||
|
|
||
| - [UI-TARS Integration](UI-TARS_INTEGRATION_SUMMARY.md) | ||
| - [Safety Features](safety/README.md) | ||
| - [Server Mode](server/README.md) | ||
| - [Custom Protocols](protocols/README.md) | ||
|
|
||
| ## Integrations | ||
|
|
||
| - [Third-Party Services](integrations/README.md) | ||
|
|
||
| ## Guides | ||
|
|
||
| - [Local Development](guides/local-development.md) | ||
| - [Deployment Options](guides/deployment.md) | ||
| - [Troubleshooting](troubleshooting/README.md) | ||
|
|
||
| ## Additional Resources | ||
|
|
||
| - [Roadmap](ROADMAP.md) | ||
| - [Contributing](CONTRIBUTING.md) | ||
| - [Security](SECURITY.md) |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file contains duplicated content. Lines 41-81 are an exact duplicate of lines 1-40 (minus the header). This duplication should be removed.
| - [License](../LICENSE)# Open Interpreter Documentation | |
| Welcome to the Open Interpreter documentation. This documentation covers all aspects of using and extending Open Interpreter. | |
| ## Getting Started | |
| - [Quick Start Guide](../QUICK_START_GUIDE.md) | |
| - [Setup Instructions](getting-started/setup.md) | |
| - [Basic Usage](getting-started/basic-usage.md) | |
| ## Core Concepts | |
| - [Computer API](computer/README.md) | |
| - [Language Models](language-models/README.md) | |
| - [Code Execution](code-execution/README.md) | |
| - [Agents and Prompt Orchestration](agents.md) <!-- Added reference to agents.md --> | |
| - [Settings](settings/README.md) | |
| ## Advanced Features | |
| - [UI-TARS Integration](UI-TARS_INTEGRATION_SUMMARY.md) | |
| - [Safety Features](safety/README.md) | |
| - [Server Mode](server/README.md) | |
| - [Custom Protocols](protocols/README.md) | |
| ## Integrations | |
| - [Third-Party Services](integrations/README.md) | |
| ## Guides | |
| - [Local Development](guides/local-development.md) | |
| - [Deployment Options](guides/deployment.md) | |
| - [Troubleshooting](troubleshooting/README.md) | |
| ## Additional Resources | |
| - [Roadmap](ROADMAP.md) | |
| - [Contributing](CONTRIBUTING.md) | |
| - [Security](SECURITY.md) |
| } "footerSocials": { | ||
| "twitter": "https://x.com/OpenInterpreter", | ||
| "youtube": "https://www.youtube.com/@OpenInterpreter", | ||
| "linkedin": "https://www.linkedin.com/company/openinterpreter" | ||
| } |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 160-164 duplicate the "footerSocials" object that already exists (lines 157-159), creating invalid JSON. Remove the duplicate closing brace on line 159 and the duplicate footerSocials object (lines 160-164), keeping only one complete footerSocials definition.
| } "footerSocials": { | |
| "twitter": "https://x.com/OpenInterpreter", | |
| "youtube": "https://www.youtube.com/@OpenInterpreter", | |
| "linkedin": "https://www.linkedin.com/company/openinterpreter" | |
| } |
| return "Vision model not loaded" | ||
|
|
||
| return answer | ||
| return answer |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable answer is potentially undefined if the code reaches line 218. If self.model or self.tokenizer is None, the function returns "Vision model not loaded" at line 216, but line 218 attempts to return answer which was never assigned. Lines 209-218 should be restructured to ensure all code paths properly define answer or return early.
| import contextlib | ||
| import io | ||
| import os | ||
| import tempfile |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'tempfile' is not used.
| import tempfile |
| """ | ||
|
|
||
| import sys | ||
| import traceback |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'traceback' is not used.
| import traceback |
| for dep, description in dependencies.items(): | ||
| try: | ||
| if dep == 'PIL': | ||
| import PIL |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'PIL' is not used.
| import PIL | |
| import PIL | |
| version = getattr(PIL, '__version__', None) | |
| if version: | |
| print_result(f"{description} ({dep})", True, f"Version: {version}") | |
| else: | |
| print_result(f"{description} ({dep})", True) |
| with contextlib.redirect_stdout(open(os.devnull, "w")), \ | ||
| contextlib.redirect_stderr(open(os.devnull, "w")): |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is opened but is not closed.
| with contextlib.redirect_stdout(open(os.devnull, "w")), \ | |
| contextlib.redirect_stderr(open(os.devnull, "w")): | |
| with open(os.devnull, "w") as devnull_out, open(os.devnull, "w") as devnull_err, \ | |
| contextlib.redirect_stdout(devnull_out), \ | |
| contextlib.redirect_stderr(devnull_err): |
| with contextlib.redirect_stdout(open(os.devnull, "w")), \ | ||
| contextlib.redirect_stderr(open(os.devnull, "w")): | ||
|
|
||
| if self.computer.debug: |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is opened but is not closed.
| with contextlib.redirect_stdout(open(os.devnull, "w")), \ | |
| contextlib.redirect_stderr(open(os.devnull, "w")): | |
| if self.computer.debug: | |
| with open(os.devnull, "w") as devnull_out, open(os.devnull, "w") as devnull_err: | |
| with contextlib.redirect_stdout(devnull_out), contextlib.redirect_stderr(devnull_err): | |
| if self.computer.debug: |
|
🤨 "Describe the changes you have made"? What does this do? |
Describe the changes you have made:
Reference any relevant issues (e.g. "Fixes #000"):
Pre-Submission Checklist (optional but appreciated):
docs/CONTRIBUTING.mddocs/ROADMAP.mdOS Tests (optional but appreciated):