DeepSeek Wrapper is a modern web interface and client library for interacting with DeepSeek's AI models. It provides a user-friendly chat interface, document processing capabilities, and a clean API for developers.
The wrapper supports all the latest DeepSeek models for chat, completion, and embeddings. You can configure which model you want to use through environment variables or the API.
Yes, you need an API key from DeepSeek to use this wrapper. You can obtain one by signing up at https://platform.deepseek.com.
You can install it by cloning the repository and installing the dependencies with pip. See the Getting Started guide for detailed instructions.
- Python 3.8 or higher
- Modern web browser (for UI)
- Internet connection
- DeepSeek API key
Add your API key to the .env file in the root directory:
DEEPSEEK_API_KEY=your_api_key_here
No, the wrapper needs to connect to the DeepSeek API servers, which requires an internet connection.
In the web UI, click the "New Chat" button in the sidebar. Programmatically, post to /chat with a user_message form field to begin a session-backed exchange.
Yes, you can upload PDF, DOCX, and TXT files using the file upload button next to the input field. The content will be processed and included in the context for your next message.
In the web UI, click the settings icon and enter your system prompt in the appropriate field. In the API, include the system_prompt parameter in your request.
Currently, there's no built-in export feature. X Planned for a future release.
- Ensure you have Python 3.8+ installed
- Verify that all dependencies are installed
- Check that your
.envfile exists and contains your API key - Look at the console output for specific error messages
- Ensure your API key is correctly set in the
.envfile - Check that the API key is valid and active
- Make sure there are no extra spaces or quotes around the key
- This may be due to token limits. Try shortening your messages or context
- Check your internet connection, as streaming might be interrupted
- Ensure the file is in a supported format (PDF, DOCX, TXT)
- Check that the file size is within the limits (default is 10MB)
- Verify that the uploads directory exists and is writable
See the CONTRIBUTING.md file for guidelines on how to contribute to the project.
Yes, the frontend is built with HTML, CSS, and JavaScript. You can modify or extend it by editing the templates and static files.
Add support in src/deepseek_wrapper/web.py within extract_text_from_file to parse the new type, and extend upload handling if needed.
Yes. Use the Python client API, or the implemented FastAPI endpoints documented in the API Reference. Some broader REST endpoints are X planned.
The wrapper itself is open-source and free to use. However, you'll need a DeepSeek API key, which may have associated costs depending on your usage.
Rate limits are determined by DeepSeek's API policies. The wrapper itself doesn't impose additional limits.
You can track your API usage through the DeepSeek platform dashboard. The wrapper doesn't currently include built-in usage monitoring.
The wrapper doesn't store your conversations on external servers. Data is stored locally, and API communications use HTTPS. However, your data is sent to DeepSeek's servers for processing, subject to their privacy policy.
API keys are stored in the .env file, which should not be committed to version control. In production, use secure environment variable handling appropriate for your deployment platform.