类 DeepSeekService
java.lang.Object
top.aoyudi.deepseek.service.DeepSeekService
DeepSeek 服务类
用于与 DeepSeek API 进行交互
-
字段概要
字段修饰符和类型字段说明private DeepSeekConfigprivate static final org.slf4j.Loggerprivate final DeepSeekPropertiesprivate final org.springframework.web.client.RestTemplate -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private DSResponsehandleResponse(org.springframework.http.ResponseEntity<DSResponse> response) sendMessage(DeepSeekRequest request) 发送消息到 DeepSeek API,并返回响应
-
字段详细资料
-
deepSeekConfig
-
logger
private static final org.slf4j.Logger logger -
properties
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate
-
-
构造器详细资料
-
DeepSeekService
构造函数,初始化 DeepSeekProperties 和 RestTemplate
-
-
方法详细资料
-
sendMessage
发送消息到 DeepSeek API,并返回响应- 参数:
request- DeepSeek 请求对象- 返回:
- DeepSeek 的响应
-
handleResponse
-