Class DeepSeekProvider
java.lang.Object
ai.doctruth.DeepSeekProvider
- All Implemented Interfaces:
LlmProvider
DeepSeek Chat Completions provider. Backed by a hand-rolled JDK-
HttpClient-based
client (per ADR 0003 — no vendor SDK; DeepSeek has no first-party Java SDK anyway) and
the Failsafe retry gate (per ADR 0004).
DeepSeek's Chat Completions endpoint is OpenAI-API-compatible at the wire level; the
vendor-specific wire records and HTTP plumbing live under
ai.doctruth.internal.providers.deepseek.* so the OpenAI and DeepSeek providers
can evolve independently (per CONTRIBUTING.md §1 decoupling).
non-sealed so that test code (and advanced users) can anonymously subclass to
supply canned responses or wrap behaviour.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeepSeekProvider(String apiKey) DeepSeekProvider(String apiKey, URI endpoint, String model) -
Method Summary
Modifier and TypeMethodDescriptionapiKey()complete(ProviderRequest request) Execute one extraction call against the provider.name()Logical lower-case name of the provider, e.g.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LlmProvider
region
-
Constructor Details
-
DeepSeekProvider
-
DeepSeekProvider
-
-
Method Details
-
apiKey
-
name
Description copied from interface:LlmProviderLogical lower-case name of the provider, e.g."anthropic". Recorded intoProvenance.model()on everyExtractionResult.- Specified by:
namein interfaceLlmProvider
-
complete
Description copied from interface:LlmProviderExecute one extraction call against the provider.- Specified by:
completein interfaceLlmProvider- Parameters:
request- the prepared request; never null.- Returns:
- the provider's raw JSON response and usage metadata.
- Throws:
ProviderException- on transport, schema, or upstream failure.
-