Functions | |
| record | DeepSeekConfig (String apiKey, URI baseUri, Duration timeout, Map< String, String > defaultHeaders) |
| Immutable configuration for connecting to the DeepSeek chat completions API. | |
| 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.
| apiKey | non-blank DeepSeek API key used for Bearer authentication |
| baseUri | base URI of the API (trailing slash is normalised automatically) |
| timeout | connection and read timeout applied to every HTTP request |
| defaultHeaders | additional 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.
| IllegalArgumentException | if apiKey is blank |
Definition at line 46 of file DeepSeekConfig.java.
References DeepSeekConfig().
Referenced by DeepSeekConfig().