mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 18:45:06 +08:00
AI:code review chat 部分的代码(qianwen)
This commit is contained in:
@ -9,6 +9,7 @@ import org.springframework.http.HttpStatusCode;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
// TODO @fansili:是不是挪到 api 包里?按照 spring ai 的结构;根目录只放 client 和 options
|
||||
/**
|
||||
* 阿里 通义千问
|
||||
*
|
||||
|
@ -29,7 +29,7 @@ import java.util.stream.Collectors;
|
||||
* time: 2024/3/13 21:06
|
||||
*/
|
||||
@Slf4j
|
||||
public class QianWenChatClient implements ChatClient, StreamingChatClient {
|
||||
public class QianWenChatClient implements ChatClient, StreamingChatClient {
|
||||
|
||||
private QianWenApi qianWenApi;
|
||||
|
||||
@ -44,6 +44,7 @@ public class QianWenChatClient implements ChatClient, StreamingChatClient {
|
||||
this.qianWenOptions = qianWenOptions;
|
||||
}
|
||||
|
||||
// TODO @fansili:看看咋公用出来,允许传入类似异常之类的参数;
|
||||
public final RetryTemplate retryTemplate = RetryTemplate.builder()
|
||||
// 最大重试次数 10
|
||||
.maxAttempts(10)
|
||||
|
@ -1,5 +1,13 @@
|
||||
/**
|
||||
* author: fansili
|
||||
* time: 2024/3/12 20:29
|
||||
*
|
||||
* 1. org.springframework.ai:包括 chat、image、model、parser、util 部分
|
||||
*
|
||||
* 2. yudao.framework.models
|
||||
* \qianwen 通义千问
|
||||
* \yiyan 文心一言
|
||||
* \xinghuo 星火
|
||||
* \midjourney
|
||||
*/
|
||||
package cn.iocoder.yudao.framework.ai;
|
Reference in New Issue
Block a user