@mongoosejs/studio 0.2.5 → 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.
- package/backend/actions/ChatMessage/executeScript.js +2 -1
- package/backend/integrations/callLLM.js +1 -1
- package/backend/integrations/streamLLM.js +1 -1
- package/docs/user_stories.md +13 -0
- package/frontend/public/app.js +1142 -7
- package/frontend/public/tw.css +72 -0
- package/frontend/src/chat/chat.js +6 -2
- package/frontend/src/detail-default/detail-default.html +15 -2
- package/frontend/src/detail-default/detail-default.js +1066 -2
- package/frontend/src/document-details/document-property/document-property.html +71 -3
- package/frontend/src/document-details/document-property/document-property.js +67 -1
- package/package.json +1 -1
|
@@ -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.
|