@mongoosejs/studio 0.2.4 → 0.2.6

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.
@@ -10,7 +10,8 @@ const ExecuteScriptParams = new Archetype({
10
10
  $type: mongoose.Types.ObjectId
11
11
  },
12
12
  chatMessageId: {
13
- $type: mongoose.Types.ObjectId
13
+ $type: mongoose.Types.ObjectId,
14
+ $required: true,
14
15
  },
15
16
  script: {
16
17
  $type: 'string'
@@ -54,7 +54,7 @@ module.exports = async function callLLM(messages, system, options) {
54
54
  method: 'POST',
55
55
  headers,
56
56
  body: JSON.stringify({
57
- messages,
57
+ messages: [{ role: 'system', content: { type: 'text', text: system } }, ...messages],
58
58
  model: options?.model
59
59
  })
60
60
  }).then(response => {
@@ -66,7 +66,7 @@ module.exports = async function* streamLLM(messages, system, options) {
66
66
  method: 'POST',
67
67
  headers,
68
68
  body: JSON.stringify({
69
- messages,
69
+ messages: [{ role: 'system', content: { type: 'text', text: system } }, ...messages],
70
70
  model: options?.model
71
71
  })
72
72
  }).then(response => {
@@ -0,0 +1,13 @@
1
+ # User Stories
2
+
3
+ ## Document Details
4
+
5
+ /model/:modelName/document/:documentId
6
+
7
+ ### Maps
8
+
9
+ 1. As a user, I want to be able to see GeoJSON points on a map so I don't have to go somewhere else to view latitude/longitude.
10
+ 2. As a user, I want to be able to see GeoJSON polygons on a map so I don't have to go somewhere else to view latitude/longitude.
11
+ 3. As a user, I want to be able to drag to edit the coordinates of a GeoJSON point so I don't have to copy/paste latitude/longitude.
12
+ 4. As a user, I want to be able to drag to edit the vertexes of a GeoJSON polygon so I don't have to copy/paste latitude/longitude.
13
+ 5. As a user, I want to be able to remove a vertex from a GeoJSON polygon down to a triangle and then drag to edit the coordinates of the remaining vertexes.