DeepSeekConfig class
DeepSeek provider configuration
This class contains all configuration options for the DeepSeek providers. It's extracted from the main provider to improve modularity and reusability.
Constructors
-
DeepSeekConfig.new({required String apiKey, String baseUrl = ProviderDefaults.deepseekBaseUrl, String model = ProviderDefaults.deepseekDefaultModel, int? maxTokens, double? temperature, String? systemPrompt, Duration? timeout, double? topP, int? topK, List<
Tool> ? tools, ToolChoice? toolChoice, bool? logprobs, int? topLogprobs, double? frequencyPenalty, double? presencePenalty, Map<String, dynamic> ? responseFormat, LLMConfig? originalConfig}) -
const
- DeepSeekConfig.fromLLMConfig(LLMConfig config)
-
Create DeepSeekConfig from unified LLMConfig
factory
Properties
- apiKey → String
-
final
- baseUrl → String
-
final
- frequencyPenalty → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logprobs → bool?
-
final
- maxTokens → int?
-
final
- model → String
-
final
- originalConfig → LLMConfig?
-
Get the original LLMConfig for HTTP configuration
no setter
- presencePenalty → double?
-
final
-
responseFormat
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsCodeGeneration → bool
-
Check if this model supports code generation
no setter
- supportsReasoning → bool
-
Check if this model supports reasoning/thinking
no setter
- supportsToolCalling → bool
-
Check if this model supports tool calling
no setter
- supportsVision → bool
-
Check if this model supports vision
no setter
- systemPrompt → String?
-
final
- temperature → double?
-
final
- timeout → Duration?
-
final
- toolChoice → ToolChoice?
-
final
-
tools
→ List<
Tool> ? -
final
- topK → int?
-
final
- topLogprobs → int?
-
final
- topP → double?
-
final
Methods
-
copyWith(
{String? apiKey, String? baseUrl, String? model, int? maxTokens, double? temperature, String? systemPrompt, Duration? timeout, double? topP, int? topK, List< Tool> ? tools, ToolChoice? toolChoice, bool? logprobs, int? topLogprobs, double? frequencyPenalty, double? presencePenalty, Map<String, dynamic> ? responseFormat}) → DeepSeekConfig -
getExtension<
T> (String key) → T? - Get extension value from original config
-
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