ben-ai-models-registry 1.0.24 → 1.0.26

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.
package/index.js CHANGED
@@ -7,6 +7,7 @@ const Program = require('./models/Program');
7
7
  const QA = require('./models/QA');
8
8
  const ChatMessages = require('./models/ChatMessages');
9
9
  const LanguageObject = require('./models/LanguageObject')
10
+ const User = require('./models/User')
10
11
 
11
12
  module.exports = {
12
13
  JobStatus,
@@ -16,5 +17,6 @@ module.exports = {
16
17
  Program,
17
18
  QA,
18
19
  ChatMessages,
19
- LanguageObject
20
+ LanguageObject,
21
+ User
20
22
  };
package/models/Run.js CHANGED
@@ -31,7 +31,13 @@ const RunType = {
31
31
 
32
32
  const AnswerSchema = new Schema(
33
33
  {
34
- prediction: { type: String, required: true },
34
+ prediction: { type: String },
35
+ sources: [
36
+ {
37
+ filename: { type: String },
38
+ url: { type: String },
39
+ },
40
+ ],
35
41
  assistantModel: {
36
42
  type: String,
37
43
  enum: Object.values(AssistantModel),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ben-ai-models-registry",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {