Class DeepSeekPlugin
java.lang.Object
com.google.genkit.plugins.deepseek.DeepSeekPlugin
- All Implemented Interfaces:
Plugin
DeepSeekPlugin provides DeepSeek model integrations for Genkit.
This plugin registers DeepSeek models as Genkit actions using the
OpenAI-compatible API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSupported DeepSeek models. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a DeepSeekPlugin with default options (using DEEPSEEK_API_KEY environment variable).DeepSeekPlugin(CompatOAIPluginOptions options) Creates a DeepSeekPlugin with the specified options. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeepSeekPlugincreate()Creates a DeepSeekPlugin using the DEEPSEEK_API_KEY environment variable.static DeepSeekPluginCreates a DeepSeekPlugin with the specified API key.customModel(String modelName) Registers a custom model name.getName()Returns the unique identifier for the plugin.Gets the plugin options.init()Initializes the plugin.
-
Field Details
-
SUPPORTED_MODELS
Supported DeepSeek models.
-
-
Constructor Details
-
DeepSeekPlugin
public DeepSeekPlugin()Creates a DeepSeekPlugin with default options (using DEEPSEEK_API_KEY environment variable). -
DeepSeekPlugin
Creates a DeepSeekPlugin with the specified options.- Parameters:
options- the plugin options
-
-
Method Details
-
create
Creates a DeepSeekPlugin with the specified API key.- Parameters:
apiKey- the DeepSeek API key- Returns:
- a new DeepSeekPlugin
-
create
Creates a DeepSeekPlugin using the DEEPSEEK_API_KEY environment variable.- Returns:
- a new DeepSeekPlugin
-
getName
Description copied from interface:PluginReturns the unique identifier for the plugin. This name is used for registration and lookup. -
init
Description copied from interface:PluginInitializes the plugin. This method is called once during Genkit initialization. The plugin should return a list of actions that it provides. -
customModel
Registers a custom model name. Use this to work with models not in the default list. Call this method before passing the plugin to Genkit.builder().- Parameters:
modelName- the model name (e.g., "deepseek-v3")- Returns:
- this plugin instance for method chaining
-
getOptions
Gets the plugin options.- Returns:
- the options
-