DeepSeek is a community plugin for using DeepSeek APIs with Firebase Genkit. This plugin provides a simple interface to DeepSeek’s chat and reasoning models through the Genkit plugin system.
Note: This plugin is based on the OpenAI plugin code from The Fire Company and is distributed under the Apache 2.0 License.
- DeepSeek Chat – The primary chat model for conversation.
- DeepSeek Reasoner – The reasoning model for analytical responses.
Install the plugin in your project with your favorite package manager:
npm install genkitx-deepseek
# or
yarn add genkitx-deepseek
# or
pnpm add genkitx-deepseek
import { genkit } from 'genkit';
import deepseek, { deepseekChat } from 'genkitx-deepseek';
const ai = genkit({
plugins: [deepseek({ apiKey: process.env.DEEPSEEK_API_KEY })],
// Optionally specify a default model if not provided in generate params:
model: deepseekChat,
});
const response = await ai.generate({
model: deepseekChat,
prompt: 'Tell me joke!',
});
console.log(response.text);
This project is licensed under the Apache 2.0 License.