This plugin uses pip to install packages within a Conda environment, defaulting to the base environment. After the plugin is deployed, please select the corresponding Conda environment or create a new environment from the bottom-right corner.
- Complete Imports: Completes imports in a single Python file.
- Auto Config: Utilizes a large language model to automatically install Python packages with pip.
- Environment Debug: Automatically runs the Python file. If errors occur, the large language model suggests how to set up the environment and executes the returned commands. The debug loop runs up to 3 times.
- Generate requirements.txt (Explore Folder). Warning: This operation will generate and replace the
requirements.txt
file in the selected folder for.py
files in all subdirectories.
git clone <repository-url>
cd <project-directory>
npm install
code .
run it with F5 in vscode.
- OpenAI key (Current model: gpt-3.5-turbo-1106, you can choose prefered model in Settings, but it might lead to errors due to different api.)
- Conda
Open VSCode.
Navigate to File > Preferences > Settings (or press Ctrl + , / Cmd + ,). Search for "auto_config_env" and enter your API key in the input box.
- The extension is designed for Ubuntu and not tested on Windows.
This extension contributes the following settings:
- "auto_config_env.openaiApiKey": "Your OpenAI Key"
- "auto_config_env.gpt_model": "gpt-3.5-turbo-1106" or other models(without tests)
Let me know if there's anything else you'd like to add or change!
Support other LLMs like claude.