Skip to content

oddbit/genkitx-deepseek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Genkit + DeepSeek

Firebase Genkit DeepSeek Plugin

License: Apache 2.0

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

console.log(response.text);

License

This project is licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published