1.0.1 • Published 5 months ago

genkitx-deepseek v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Firebase Genkit + DeepSeek

Firebase Genkit DeepSeek Plugin

License: Apache 2.0 NPM version

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.

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:

npm install genkitx-deepseek
# or
yarn add genkitx-deepseek
# or
pnpm add genkitx-deepseek

Usage

Initialization

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,
});

Basic Example

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.