Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
Package dev.rafex.ether.ai.deepseek.config

Functions

record DeepSeekConfig (String apiKey, URI baseUri, Duration timeout, Map< String, String > defaultHeaders)
 Immutable configuration for connecting to the DeepSeek chat completions API.

Function Documentation

◆ DeepSeekConfig()

record dev.rafex.ether.ai.deepseek.config.DeepSeekConfig ( String apiKey,
URI baseUri,
Duration timeout,
Map< String, String > defaultHeaders )

Immutable configuration for connecting to the DeepSeek chat completions API.

Validates and normalises all fields at construction time: the API key must be non-blank, baseUri defaults to {@value #DEFAULT_BASE_URI} and timeout defaults to {@value #DEFAULT_TIMEOUT} seconds.

Parameters
apiKeynon-blank DeepSeek API key used for Bearer authentication
baseUribase URI of the API (trailing slash is normalised automatically)
timeoutconnection and read timeout applied to every HTTP request
defaultHeadersadditional HTTP headers sent with every request (unmodifiable)

Default base URI pointing to the public DeepSeek API.

Default connection timeout in seconds.

Compact constructor that validates the API key and applies defaults for nullable fields.

Exceptions
IllegalArgumentExceptionif apiKey is blank

Definition at line 46 of file DeepSeekConfig.java.

References DeepSeekConfig().

Referenced by DeepSeekConfig().

Here is the call graph for this function:
Here is the caller graph for this function: