@common_ch/common 1.0.353 → 1.0.355

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,8 @@ export declare enum AiOptionStatusEnum {
3
3
  deactive = "deactive"
4
4
  }
5
5
  export declare enum AiOptionNamesEnum {
6
+ GEMINI_3_PRO = "gemini-3-pro-preview",
7
+ GEMINI_3_PRO_IMAGE = "gemini-3-pro-image-preview",
6
8
  GEMINI_2_5_PRO = "gemini-2.5-pro",
7
9
  GEMINI_2_5_FLASH = "gemini-2.5-flash",
8
10
  GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite",
@@ -13,6 +15,11 @@ export declare enum AiOptionNamesEnum {
13
15
  GEMINI_1_5_FLASH = "gemini-1.5-flash",
14
16
  TEXT_EMBEDDING_004 = "text-embedding-004",
15
17
  TEXT_EMBEDDING_ADA_002 = "text-embedding-ada-002",
18
+ gpt5dot1 = "gpt-5.1",
19
+ gpt5dot1Codex = "gpt-5.1-codex",
20
+ gpt5dot1CodexMax = "gpt-5.1-codex-max",
21
+ gpt5dot1CodexMini = "gpt-5.1-codex-mini",
22
+ gpt5dot1Chat = "gpt-5.1-chat-latest",
16
23
  gpt5Mini = "gpt-5-mini",
17
24
  gpt5Nano = "gpt-5-nano",
18
25
  gpt5 = "gpt-5",
package/build/enums/ai.js CHANGED
@@ -8,6 +8,8 @@ var AiOptionStatusEnum;
8
8
  })(AiOptionStatusEnum || (exports.AiOptionStatusEnum = AiOptionStatusEnum = {}));
9
9
  var AiOptionNamesEnum;
10
10
  (function (AiOptionNamesEnum) {
11
+ AiOptionNamesEnum["GEMINI_3_PRO"] = "gemini-3-pro-preview";
12
+ AiOptionNamesEnum["GEMINI_3_PRO_IMAGE"] = "gemini-3-pro-image-preview";
11
13
  // ===== Gemini 2.5 =====
12
14
  AiOptionNamesEnum["GEMINI_2_5_PRO"] = "gemini-2.5-pro";
13
15
  AiOptionNamesEnum["GEMINI_2_5_FLASH"] = "gemini-2.5-flash";
@@ -22,6 +24,11 @@ var AiOptionNamesEnum;
22
24
  // ===== Embeddings =====
23
25
  AiOptionNamesEnum["TEXT_EMBEDDING_004"] = "text-embedding-004";
24
26
  AiOptionNamesEnum["TEXT_EMBEDDING_ADA_002"] = "text-embedding-ada-002";
27
+ AiOptionNamesEnum["gpt5dot1"] = "gpt-5.1";
28
+ AiOptionNamesEnum["gpt5dot1Codex"] = "gpt-5.1-codex";
29
+ AiOptionNamesEnum["gpt5dot1CodexMax"] = "gpt-5.1-codex-max";
30
+ AiOptionNamesEnum["gpt5dot1CodexMini"] = "gpt-5.1-codex-mini";
31
+ AiOptionNamesEnum["gpt5dot1Chat"] = "gpt-5.1-chat-latest";
25
32
  AiOptionNamesEnum["gpt5Mini"] = "gpt-5-mini";
26
33
  AiOptionNamesEnum["gpt5Nano"] = "gpt-5-nano";
27
34
  AiOptionNamesEnum["gpt5"] = "gpt-5";
@@ -26,6 +26,7 @@ export interface PlanCreateEvent {
26
26
  gemini?: ToolsGemini[];
27
27
  };
28
28
  models: AiOptionNamesEnum[];
29
+ defaultModel: AiOptionNamesEnum;
29
30
  userOwn?: Types.ObjectId;
30
31
  };
31
32
  }
@@ -26,6 +26,7 @@ export interface PlanUpdateEvent {
26
26
  gemini?: ToolsGemini[];
27
27
  };
28
28
  models: AiOptionNamesEnum[];
29
+ defaultModel: AiOptionNamesEnum;
29
30
  typePay: TypePayEnum;
30
31
  };
31
32
  }
@@ -18,6 +18,7 @@ export interface PlanAttrs {
18
18
  gemini?: ToolsGemini[];
19
19
  };
20
20
  models: AiOptionNamesEnum[];
21
+ defaultModel: AiOptionNamesEnum;
21
22
  description?: string;
22
23
  descriptionArray?: string[];
23
24
  status?: PlanStatusEnum;
@@ -44,6 +45,7 @@ export interface PlanDoc extends mongoose.Document {
44
45
  gemini?: ToolsGemini[];
45
46
  };
46
47
  models: AiOptionNamesEnum[];
48
+ defaultModel: AiOptionNamesEnum;
47
49
  ais: Types.ObjectId[] | AiDoc[];
48
50
  description?: string;
49
51
  descriptionArray?: string[];
@@ -53,6 +53,12 @@ const planSchema = new mongoose_1.default.Schema({
53
53
  required: true,
54
54
  }
55
55
  ],
56
+ defaultModel: {
57
+ type: String,
58
+ enum: ai_1.AiOptionNamesEnum,
59
+ required: true,
60
+ default: ai_1.AiOptionNamesEnum.gpt4dot1Mini,
61
+ },
56
62
  limitUploadFiles: {
57
63
  type: Number,
58
64
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.353",
3
+ "version": "1.0.355",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [