Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.5 KB

README.md

File metadata and controls

48 lines (39 loc) · 1.5 KB

llm-deepseek

PyPI Changelog Tests License

Access deepseek.com models via API

Installation

Install this plugin in the same environment as LLM.

llm install llm-deepseek

Usage

Obtain a DeepSeek API key and save it like this:

llm keys set deepseek
# <Paste key here>

Run llm models to get a list of models.

Run prompts like this:

llm -m deepseek-chat 'five great names for a pet ocelot'
llm -m deepseek-reasoner 'solve \\int \\frac{\\ln(x)\\arctan(x)}{x^2+1} dx'
llm -m deepseek-coder 'how to reverse a linked list in python'

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-deepseek
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest