Access deepseek.com models via API
Install this plugin in the same environment as LLM.
llm install llm-deepseek
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'
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