DeepSeekProvider class

DeepSeek LLM provider implementation.

Uses the DeepSeek Chat API with automatic retry and timeout handling.

Implemented types

Constructors

DeepSeekProvider({required String apiKey, String modelName = _defaultModel, Duration timeout = HttpConfig.defaultTimeout})
Creates a new DeepSeek provider.

Properties

apiKey String
final
availableModels List<String>
List of model names available from this provider.
no setteroverride
defaultModel String
The default model to use if none is specified.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
modelName String
final
name String
Human-readable name of this provider (e.g., "OpenAI", "Claude").
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
final

Methods

generateResponse(String prompt, {List<String>? context}) Future<String>
Generates a response from the LLM based on the given prompt.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited