@mongoosejs/studio 0.5.8 → 0.5.10
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/integrations/streamLLM.js +2 -2
- package/eslint.config.js +3 -1
- package/frontend/index.js +2 -1
- package/frontend/public/app.js +529 -469
- package/frontend/src/_util/document-search-autocomplete.js +11 -0
- package/frontend/src/index.js +1 -5
- package/frontend/src/models/document-search/document-search.js +16 -0
- package/frontend/src/models/models.js +46 -10
- package/frontend/src/routes.js +2 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ module.exports = async function* streamLLM(messages, system, options) {
|
|
|
30
30
|
providers.push({
|
|
31
31
|
name: 'Gemini',
|
|
32
32
|
provider: createGoogleGenerativeAI({ apiKey: options.googleGeminiAPIKey }),
|
|
33
|
-
model: options?.model ?? 'gemini-
|
|
33
|
+
model: options?.model ?? 'gemini-3.1-pro-preview'
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -51,7 +51,7 @@ module.exports = async function* streamLLM(messages, system, options) {
|
|
|
51
51
|
system,
|
|
52
52
|
messages,
|
|
53
53
|
tools: options?.tools,
|
|
54
|
-
stopWhen: options?.tools ? stepCountIs(
|
|
54
|
+
stopWhen: options?.tools ? stepCountIs(50) : undefined,
|
|
55
55
|
onError(err) {
|
|
56
56
|
error = err.error;
|
|
57
57
|
}
|
package/eslint.config.js
CHANGED
package/frontend/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const path = require('path');
|
|
|
6
6
|
const webpack = require('webpack');
|
|
7
7
|
const { defaultMothershipURL } = require('../constants');
|
|
8
8
|
const webpackConfig = require('./webpack.config');
|
|
9
|
+
const util = require('util');
|
|
9
10
|
|
|
10
11
|
module.exports = async function frontend(apiUrl, isLambda, options, workspace) {
|
|
11
12
|
const mothershipUrl = options?._mothershipUrl || defaultMothershipURL;
|
|
@@ -22,7 +23,7 @@ module.exports = async function frontend(apiUrl, isLambda, options, workspace) {
|
|
|
22
23
|
.then(response => {
|
|
23
24
|
if (response.status < 200 || response.status >= 400) {
|
|
24
25
|
return response.json().then(data => {
|
|
25
|
-
throw new Error(`Mongoose Studio API Key Error ${response.status}: ${
|
|
26
|
+
throw new Error(`Mongoose Studio API Key Error ${response.status}: ${util.inspect(data)}`);
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
return response;
|