DeepSeekLLMAutoConfiguration
Auto-configuration class for integrating with the DeepSeek LLM provider within a Spring Boot application.
This configuration enables the auto-wiring of required beans when the appropriate application properties are set. The configuration ensures that the DeepSeekLLMClient is properly initialized and available for usage in the application.
The following conditions must be met for this configuration to be activated:
The property
ai.koog.deepseek.api-key
must be defined in the application configuration.The property
ai.koog.deepseek.enabled
must have a value oftrue
.
Properties used:
ai.koog.deepseek.api-key
: API key required to authenticate requests to the DeepSeek API.ai.koog.deepseek.base-url
: Base URL of the DeepSeek API, with a default value ofhttps://api.deepseek.com
.ai.koog.deepseek.retry
: Retry configuration settings for failed requests.
Beans provided:
DeepSeekLLMClient: A client for interacting with the DeepSeek API.
SingleLLMPromptExecutor: A bean for executing single-step LLM prompts using the DeepSeek client.
See also
Functions
Creates a SingleLLMPromptExecutor bean configured to use the DeepSeek LLM client.
Creates a DeepSeekLLMClient bean configured with application properties.