This guide provides step-by-step instructions to integrate DeepSeek V3 into AI Assistant as a third-party provider in PyCharm 2024.3.1 (Professional Edition). Data is routed through a fake Ollama server to DeepSeek.
- DeepSeek API Key: Ensure you have the necessary API key from DeepSeek.
- Python/Docker Knowledge: Basic understanding of Python and Docker is required.
To run the docker container, replace your_api_key_here
with your DeepSeek API key:
docker run --rm -e API_KEY=your_api_key_here -p 11434:11434 ghcr.io/robtomars/deepseek
-
Set Up the Repository:
- Clone the repository.
- Create a virtual environment.
- Install dependencies from
requirements.txt
.
-
Configure PyCharm:
- Open your project in PyCharm.
- Navigate to
Run > Edit Configurations
. - Add a new configuration for
fake_ollama_server.py
. - Add your DeepSeek API key as
API_KEY
environment variable in the run configuration.
-
Add Third-Party AI Provider:
- Go to
Tools > AI Assistant > Third-party AI providers
. - Check
Enable Ollama
and updateURL
if changed. - Use
Test connection
andApply
settings. - AI Assistant will automatically detect the server (approximately every minute) otherwise disable/enable it.
- Go to
-
Select the Model:
- Once the server is detected, choose the DeepSeek model from the available options.
-
Use the Model:
- Enter a user prompt to interact with the selected model.
Python Setup
Third-Party AI Providers Configuration
AI Assistant Chat Interface
- Ensure
fake_ollama_server.py
is running before proceeding with the integration. - If the server is not detected, restart the server and verify the environment variables.
- PyCharm AI Assistant Documentation
- DeepSeek Chat
- DeepSeek API Documentation
- Ollama GitHub Repository
We welcome contributions and feedback! If you have suggestions or encounter issues, please:
- Open an issue.
- Submit a pull request.
Let’s improve this integration together!
- DeepSeek V3: With system prompts of AI Assistant in PyCharm 2024.3.1 (Professional Edition) and the web chat edition.
- RobToMars
- starkirby125918
- JasonLovesDoggo
For further assistance, refer to the official DeepSeek documentation or contact the support team.