https://github.com/oddbit/genkitx-deepseek
https://github.com/oddbit/genkitx-deepseek
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oddbit/genkitx-deepseek
- Owner: oddbit
- License: apache-2.0
- Created: 2025-02-06T05:03:32.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T04:31:50.000Z (2 months ago)
- Last Synced: 2025-02-13T05:26:05.629Z (2 months ago)
- Language: TypeScript
- Size: 317 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-genkit - `genkitx-deepseek` - Plugin for Deepseek Cloud APIs. (Plugins / JavaScript - Community)
README

# Firebase Genkit DeepSeek Plugin
[](https://github.com/oddbit/genkitx-deepseek/blob/main/LICENSE)

**DeepSeek** is a community plugin for using DeepSeek APIs with [Firebase Genkit](https://github.com/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](https://github.com/TheFireCo/genkit-plugins) and is distributed under the [Apache 2.0 License](https://github.com/oddbit/genkitx-deepseek/blob/main/LICENSE).
## Supported Models
- **DeepSeek Chat** – The primary chat model for conversation.
- **DeepSeek Reasoner** – The reasoning model for analytical responses.## Installation
Install the plugin in your project with your favorite package manager:
```bash
npm install genkitx-deepseek
# or
yarn add genkitx-deepseek
# or
pnpm add genkitx-deepseek
```## Usage
### Initialization
```typescript
import { genkit } from 'genkit';
import deepseek, { deepseekChat } from 'genkitx-deepseek';const ai = genkit({
plugins: [deepseek({ apiKey: process.env.DEEPSEEK_API_KEY })],
model: deepseekChat,
});
```### Basic Example
```typescript
const response = await ai.generate({
model: deepseekChat,
prompt: 'Tell me a joke!',
});console.log(response.text);
```## License
This project is licensed under the [Apache 2.0 License](https://github.com/oddbit/genkitx-deepseek/blob/main/LICENSE).