DeepSeekClient class
Core DeepSeek HTTP client shared across all capability modules
This class provides the foundational HTTP functionality that all DeepSeek capability implementations can use. It handles:
- Authentication and headers (OpenAI-compatible)
- Request/response processing
- Error handling
- SSE stream parsing
- Provider-specific configurations
Constructors
- DeepSeekClient.new(DeepSeekConfig config)
Properties
- config → DeepSeekConfig
-
final
- dio ↔ Dio
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postJson(
String endpoint, Map< String, dynamic> data) → Future<Map< String, dynamic> > - Make a POST request and return JSON response
-
postStreamRaw(
String endpoint, Map< String, dynamic> data) → Stream<String> - Make a POST request and return raw stream for SSE
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited