@meetopenbot/openbot 1.2.8 → 1.2.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/dist/agent-models.js +4 -1
- package/dist/context.js +11 -11
- package/dist/images.js +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/agent-models.js
CHANGED
|
@@ -26,7 +26,10 @@ function schemaModelIds(schema) {
|
|
|
26
26
|
}
|
|
27
27
|
export function catalogForAgent(pluginConfig, schema) {
|
|
28
28
|
const allowedModels = schemaModelIds(schema);
|
|
29
|
-
const
|
|
29
|
+
const storedModel = trimmedString(pluginConfig?.model);
|
|
30
|
+
const defaultModel = (storedModel && allowedModels.includes(storedModel) ? storedModel : undefined) ??
|
|
31
|
+
trimmedString(schema?.default) ??
|
|
32
|
+
allowedModels[0];
|
|
30
33
|
const models = allowedModels.map((id) => optionFromSchema(id, schema));
|
|
31
34
|
return {
|
|
32
35
|
defaultModel,
|
package/dist/context.js
CHANGED
|
@@ -8,17 +8,17 @@ export const MAX_CONTEXT_FILES = 50;
|
|
|
8
8
|
*/
|
|
9
9
|
export const getContextBudgetForModel = (modelString) => {
|
|
10
10
|
const budgets = {
|
|
11
|
-
"openai/gpt-
|
|
12
|
-
"openai/gpt-
|
|
13
|
-
"openai/
|
|
14
|
-
"
|
|
15
|
-
"anthropic/claude-
|
|
16
|
-
"anthropic/claude-
|
|
17
|
-
"anthropic/claude-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"deepseek/deepseek-
|
|
21
|
-
"deepseek/deepseek-
|
|
11
|
+
"openai/gpt-6-astra": 1050000,
|
|
12
|
+
"openai/gpt-6-sol": 1050000,
|
|
13
|
+
"openai/gpt-6-luna": 1050000,
|
|
14
|
+
"anthropic/claude-fable-5-1": 1000000,
|
|
15
|
+
"anthropic/claude-opus-5-5": 1000000,
|
|
16
|
+
"anthropic/claude-sonnet-5": 1000000,
|
|
17
|
+
"anthropic/claude-haiku-4-5": 200000,
|
|
18
|
+
"google/gemini-3.1-pro-preview": 1000000,
|
|
19
|
+
"google/gemini-3.8-flash": 1048576,
|
|
20
|
+
"deepseek/deepseek-flash": 128000,
|
|
21
|
+
"deepseek/deepseek-v4-pro": 128000,
|
|
22
22
|
"zai/glm-5.3-flash": 1000000,
|
|
23
23
|
};
|
|
24
24
|
return budgets[modelString] || DEFAULT_CONTEXT_BUDGET;
|
package/dist/images.js
CHANGED
|
@@ -19,11 +19,11 @@ function hasAnyKey(env, keys) {
|
|
|
19
19
|
/** Auto uses DeepSeek, which cannot see pictures. Pick a cheap vision model. */
|
|
20
20
|
export function pickVisionModel(authMode, env = process.env) {
|
|
21
21
|
if (shouldUseCreditsAuth({ authMode }))
|
|
22
|
-
return 'google/gemini-3.
|
|
22
|
+
return 'google/gemini-3.8-flash';
|
|
23
23
|
if (hasAnyKey(env, BYOK_ENV_KEYS.openai))
|
|
24
|
-
return 'openai/gpt-
|
|
24
|
+
return 'openai/gpt-6-luna';
|
|
25
25
|
if (hasAnyKey(env, BYOK_ENV_KEYS.google))
|
|
26
|
-
return 'google/gemini-3.
|
|
26
|
+
return 'google/gemini-3.8-flash';
|
|
27
27
|
if (hasAnyKey(env, BYOK_ENV_KEYS.zai))
|
|
28
28
|
return 'zai/glm-5.3-flash';
|
|
29
29
|
if (hasAnyKey(env, BYOK_ENV_KEYS.anthropic))
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const modelField = await modelConfigField({
|
|
|
18
18
|
extraOptions: [AUTO_MODEL_OPTION],
|
|
19
19
|
defaultValue: AUTO_MODEL_ID,
|
|
20
20
|
description: 'Auto, or a model from the OpenBot registry.',
|
|
21
|
-
fallbackDescription: 'Auto, or a provider model in provider/model-id format (e.g. openai/gpt-
|
|
21
|
+
fallbackDescription: 'Auto, or a provider model in provider/model-id format (e.g. openai/gpt-6-luna).',
|
|
22
22
|
});
|
|
23
23
|
/**
|
|
24
24
|
* `@meetopenbot/openbot` — the standard, opinionated OpenBot agent runtime.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetopenbot/openbot",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "OpenBot coordinator runtime: ask specialists, route work into Spaces, and track todos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ai-sdk/openai": "^4.0.72",
|
|
26
26
|
"ai": "^7.0.111",
|
|
27
27
|
"zod": "^4.3.5",
|
|
28
|
-
"@meetopenbot/plugin-sdk": "^1.2.
|
|
28
|
+
"@meetopenbot/plugin-sdk": "^1.2.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^20.10.1",
|