ben-ai-models-registry 1.0.41 → 1.0.43

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.
@@ -73,7 +73,7 @@ const ChatMessageSchema = new mongoose.Schema(
73
73
  values: ["openai", "langchain"],
74
74
  },
75
75
  },
76
- programID: {
76
+ programId: {
77
77
  type: Types.ObjectId,
78
78
  ref: "Program",
79
79
  },
@@ -81,6 +81,10 @@ const ChatMessageSchema = new mongoose.Schema(
81
81
  type: Types.ObjectId,
82
82
  ref: "User",
83
83
  },
84
+ title: {
85
+ type: String,
86
+ required: false,
87
+ },
84
88
  chatMessages: [chatMessages],
85
89
  },
86
90
  {
package/models/Dataset.js CHANGED
@@ -12,7 +12,7 @@ const QAPairSchema = new Schema(
12
12
  const DatasetSchema = new Schema(
13
13
  {
14
14
  stateId: { type: mongoose.Schema.Types.ObjectId, ref: "State" },
15
- programID: {
15
+ programId: {
16
16
  type: Types.ObjectId,
17
17
  ref: "Program",
18
18
  },
@@ -6,7 +6,7 @@ const { Schema, Types } = mongoose;
6
6
  const FileStoreSchema = new Schema(
7
7
  {
8
8
  stateId: { type: mongoose.Schema.Types.ObjectId, ref: "State" },
9
- programID: {
9
+ programId: {
10
10
  type: Types.ObjectId,
11
11
  },
12
12
  fileStoreName: {
@@ -16,10 +16,10 @@ const FileStoreSchema = new Schema(
16
16
  },
17
17
  files: [{ type: Schema.Types.ObjectId, ref: "Files" }],
18
18
  openAI: {
19
- assistantID: {
19
+ assistantId: {
20
20
  type: String,
21
21
  },
22
- vectorStoreID: {
22
+ vectorStoreId: {
23
23
  type: String,
24
24
  },
25
25
  failedFilesOAI: [{ type: Schema.Types.ObjectId, ref: "Files" }],
package/models/Files.js CHANGED
@@ -20,7 +20,7 @@ const FileSchema = new Schema(
20
20
  url: {
21
21
  type: String,
22
22
  },
23
- openAIFileID: {
23
+ openAIFileId: {
24
24
  type: String,
25
25
  },
26
26
  },
package/models/QA.js CHANGED
@@ -4,7 +4,7 @@ const { Schema, Types } = mongoose;
4
4
  const QASchema = new Schema(
5
5
  {
6
6
  stateId: { type: mongoose.Schema.Types.ObjectId, ref: "State" },
7
- programID: {
7
+ programId: {
8
8
  type: Types.ObjectId,
9
9
  ref: "Program",
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ben-ai-models-registry",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "",
5
5
  "files": [
6
6
  "/models"