mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 07:25:07 +08:00
基层 open ai 添加 chat 聊天
This commit is contained in:
@ -17,4 +17,22 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- yudao-common -->
|
||||
<dependency>
|
||||
<groupId>cn.iocoder.boot</groupId>
|
||||
<artifactId>yudao-common</artifactId>
|
||||
</dependency>
|
||||
<!-- lombok -->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<!-- 参数校验 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -0,0 +1,25 @@
|
||||
package cn.iocoder.yudao.module.ai.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* author: fansili
|
||||
* time: 2024/3/4 12:36
|
||||
*/
|
||||
@Getter
|
||||
public enum AiModelEnum {
|
||||
|
||||
OPEN_AI_GPT_3_5("gpt-3.5-turbo", "GPT3.5"),
|
||||
OPEN_AI_GPT_4("gpt-4-turbo", "GPT4")
|
||||
|
||||
;
|
||||
|
||||
AiModelEnum(String value, String message) {
|
||||
this.value = value;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
private String value;
|
||||
|
||||
private String message;
|
||||
}
|
Reference in New Issue
Block a user