@midscene/shared 1.9.3-beta-20260609130958.0 → 1.9.3
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.
|
@@ -69,7 +69,7 @@ class ModelConfigManager {
|
|
|
69
69
|
}
|
|
70
70
|
throwErrorIfNonVLModel() {
|
|
71
71
|
const modelConfig = this.getModelConfig('default');
|
|
72
|
-
if (!modelConfig.modelFamily) throw new Error('MIDSCENE_MODEL_FAMILY is not set to a
|
|
72
|
+
if (!modelConfig.modelFamily) throw new Error('MIDSCENE_MODEL_FAMILY is not set to a multimodal model with UI localization, so element localization cannot be achieved. Check your model configuration. See https://midscenejs.com/model-strategy.html');
|
|
73
73
|
}
|
|
74
74
|
constructor(modelConfig, createOpenAIClientFn){
|
|
75
75
|
_define_property(this, "modelConfigMap", void 0);
|
|
@@ -5,7 +5,7 @@ import { assert } from "../utils.mjs";
|
|
|
5
5
|
import { maskConfig, parseJson } from "./helper.mjs";
|
|
6
6
|
import { initDebugConfig } from "./init-debug.mjs";
|
|
7
7
|
const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
|
|
8
|
-
const getCurrentVersion = ()=>"1.9.3
|
|
8
|
+
const getCurrentVersion = ()=>"1.9.3";
|
|
9
9
|
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
|
|
10
10
|
const KEYS_MAP = {
|
|
11
11
|
insight: INSIGHT_MODEL_CONFIG_KEYS,
|
|
@@ -97,7 +97,7 @@ class ModelConfigManager {
|
|
|
97
97
|
}
|
|
98
98
|
throwErrorIfNonVLModel() {
|
|
99
99
|
const modelConfig = this.getModelConfig('default');
|
|
100
|
-
if (!modelConfig.modelFamily) throw new Error('MIDSCENE_MODEL_FAMILY is not set to a
|
|
100
|
+
if (!modelConfig.modelFamily) throw new Error('MIDSCENE_MODEL_FAMILY is not set to a multimodal model with UI localization, so element localization cannot be achieved. Check your model configuration. See https://midscenejs.com/model-strategy.html');
|
|
101
101
|
}
|
|
102
102
|
constructor(modelConfig, createOpenAIClientFn){
|
|
103
103
|
_define_property(this, "modelConfigMap", void 0);
|
|
@@ -37,7 +37,7 @@ const external_utils_js_namespaceObject = require("../utils.js");
|
|
|
37
37
|
const external_helper_js_namespaceObject = require("./helper.js");
|
|
38
38
|
const external_init_debug_js_namespaceObject = require("./init-debug.js");
|
|
39
39
|
const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
|
|
40
|
-
const getCurrentVersion = ()=>"1.9.3
|
|
40
|
+
const getCurrentVersion = ()=>"1.9.3";
|
|
41
41
|
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${external_types_js_namespaceObject.MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
|
|
42
42
|
const KEYS_MAP = {
|
|
43
43
|
insight: external_constants_js_namespaceObject.INSIGHT_MODEL_CONFIG_KEYS,
|
package/package.json
CHANGED
|
@@ -148,7 +148,7 @@ export class ModelConfigManager {
|
|
|
148
148
|
|
|
149
149
|
if (!modelConfig.modelFamily) {
|
|
150
150
|
throw new Error(
|
|
151
|
-
'MIDSCENE_MODEL_FAMILY is not set to a
|
|
151
|
+
'MIDSCENE_MODEL_FAMILY is not set to a multimodal model with UI localization, so element localization cannot be achieved. Check your model configuration. See https://midscenejs.com/model-strategy.html',
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
}
|