From 64b6b45bc68f545bf386e15ec603368240a21d18 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Fri, 26 Apr 2024 13:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=8D=83?= =?UTF-8?q?=E9=97=AE=E5=A4=A7=E6=A8=A1=E5=9E=8B=E5=AE=9A=E4=B9=89=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai/chatqianwen/QianWenChatModal.java | 33 +++++++++++++++++++ .../ai/chatqianwen/package-info.java | 2 ++ .../ai/chatyiyan/YiYanChatModel.java | 7 ++-- 3 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/QianWenChatModal.java diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/QianWenChatModal.java b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/QianWenChatModal.java new file mode 100644 index 000000000..5c9298d45 --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/QianWenChatModal.java @@ -0,0 +1,33 @@ +package cn.iocoder.yudao.framework.ai.chatqianwen; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * 千问 chat 模型 + * + * 模型地址:https://help.aliyun.com/document_detail/2712576.html + * + * @author fansili + * @time 2024/4/26 10:15 + * @since 1.0 + */ +@AllArgsConstructor +@Getter +public enum QianWenChatModal { + + qwen_turbo("通义千问超大规模语言模型", "qwen-turbo"), + qwen_plus("通义千问超大规模语言模型增强版", "qwen-plus"), + qwen_max("通义千问千亿级别超大规模语言模型", "qwen-max"), + qwen_max_0403("通义千问千亿级别超大规模语言模型-0403", "qwen-max-0403"), + qwen_max_0107("通义千问千亿级别超大规模语言模型-0107", "qwen-max-0107"), + qwen_max_1201("通义千问千亿级别超大规模语言模型-1201", "qwen-max-1201"), + qwen_max_longcontext("通义千问千亿级别超大规模语言模型-28k tokens", "qwen-max-longcontext"), + + ; + + private String name; + + private String value; + +} diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/package-info.java b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/package-info.java index eb46035e0..c22dbe067 100644 --- a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/package-info.java +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/package-info.java @@ -3,6 +3,8 @@ * * 链接:https://www.aliyun.com/search?k=%E9%80%9A%E4%B9%89%E5%A4%A7%E6%A8%A1%E5%9E%8B&scene=all * + * 千问所有模型:https://bailian.console.aliyun.com/?spm=5176.28515448.J_TC9GqcHi2edq9zUs9ZsDQ.1.417338b17zJTjy#/efm/my_model + * * author: fansili * time: 2024/3/13 21:05 */ diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatyiyan/YiYanChatModel.java b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatyiyan/YiYanChatModel.java index 77675430e..b901a4dc7 100644 --- a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatyiyan/YiYanChatModel.java +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatyiyan/YiYanChatModel.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.framework.ai.chatyiyan; +import lombok.AllArgsConstructor; import lombok.Getter; /** @@ -11,6 +12,7 @@ import lombok.Getter; * time: 2024/3/9 12:01 */ @Getter +@AllArgsConstructor public enum YiYanChatModel { ERNIE4_0("ERNIE 4.0", "/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro"), @@ -23,11 +25,6 @@ public enum YiYanChatModel { ; - YiYanChatModel(String value, String uri) { - this.value = value; - this.uri = uri; - } - private String value; private String uri;