Commit 64b6b45bc68f545bf386e15ec603368240a21d18

Authored by cherishsince
1 parent 2adb5acc

【优化】千问大模型定义,

yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/QianWenChatModal.java 0 → 100644
  1 +package cn.iocoder.yudao.framework.ai.chatqianwen;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Getter;
  5 +
  6 +/**
  7 + * 千问 chat 模型
  8 + *
  9 + * 模型地址:https://help.aliyun.com/document_detail/2712576.html
  10 + *
  11 + * @author fansili
  12 + * @time 2024/4/26 10:15
  13 + * @since 1.0
  14 + */
  15 +@AllArgsConstructor
  16 +@Getter
  17 +public enum QianWenChatModal {
  18 +
  19 + qwen_turbo("通义千问超大规模语言模型", "qwen-turbo"),
  20 + qwen_plus("通义千问超大规模语言模型增强版", "qwen-plus"),
  21 + qwen_max("通义千问千亿级别超大规模语言模型", "qwen-max"),
  22 + qwen_max_0403("通义千问千亿级别超大规模语言模型-0403", "qwen-max-0403"),
  23 + qwen_max_0107("通义千问千亿级别超大规模语言模型-0107", "qwen-max-0107"),
  24 + qwen_max_1201("通义千问千亿级别超大规模语言模型-1201", "qwen-max-1201"),
  25 + qwen_max_longcontext("通义千问千亿级别超大规模语言模型-28k tokens", "qwen-max-longcontext"),
  26 +
  27 + ;
  28 +
  29 + private String name;
  30 +
  31 + private String value;
  32 +
  33 +}
... ...
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatqianwen/package-info.java
... ... @@ -3,6 +3,8 @@
3 3 *
4 4 * 链接:https://www.aliyun.com/search?k=%E9%80%9A%E4%B9%89%E5%A4%A7%E6%A8%A1%E5%9E%8B&scene=all
5 5 *
  6 + * 千问所有模型:https://bailian.console.aliyun.com/?spm=5176.28515448.J_TC9GqcHi2edq9zUs9ZsDQ.1.417338b17zJTjy#/efm/my_model
  7 + *
6 8 * author: fansili
7 9 * time: 2024/3/13 21:05
8 10 */
... ...
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/chatyiyan/YiYanChatModel.java
1 1 package cn.iocoder.yudao.framework.ai.chatyiyan;
2 2  
  3 +import lombok.AllArgsConstructor;
3 4 import lombok.Getter;
4 5  
5 6 /**
... ... @@ -11,6 +12,7 @@ import lombok.Getter;
11 12 * time: 2024/3/9 12:01
12 13 */
13 14 @Getter
  15 +@AllArgsConstructor
14 16 public enum YiYanChatModel {
15 17  
16 18 ERNIE4_0("ERNIE 4.0", "/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro"),
... ... @@ -23,11 +25,6 @@ public enum YiYanChatModel {
23 25  
24 26 ;
25 27  
26   - YiYanChatModel(String value, String uri) {
27   - this.value = value;
28   - this.uri = uri;
29   - }
30   -
31 28 private String value;
32 29  
33 30 private String uri;
... ...