@openclaw/baseten-provider 2026.9.2 → 2026.9.4
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/api.js +1 -1
- package/dist/index.js +9 -7
- package/dist/{models-KN-wJGgM.js → models-CUyzLrPr.js} +1 -0
- package/dist/models.js +1 -1
- package/dist/onboard.js +8 -6
- package/dist/provider-catalog.js +1 -1
- package/dist/stream.js +1 -1
- package/dist/thinking.js +1 -1
- package/openclaw.plugin.json +1 -0
- package/package.json +4 -4
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-CUyzLrPr.js";
|
|
2
2
|
import { applyBasetenConfig } from "./onboard.js";
|
|
3
3
|
import { buildStaticBasetenProvider } from "./provider-catalog.js";
|
|
4
4
|
export { BASETEN_BASE_URL, BASETEN_DEFAULT_MODEL_ID, BASETEN_DEFAULT_MODEL_REF, BASETEN_MODEL_CATALOG, applyBasetenConfig, buildBasetenModelCompat, buildStaticBasetenModels, buildStaticBasetenProvider, resolveBasetenDynamicModel, usesBasetenChatTemplateThinking };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./models-
|
|
2
|
-
import {
|
|
1
|
+
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./models-CUyzLrPr.js";
|
|
2
|
+
import { applyBasetenSetupConfig } from "./onboard.js";
|
|
3
3
|
import { buildStaticBasetenProvider } from "./provider-catalog.js";
|
|
4
4
|
import { createBasetenThinkingWrapper } from "./stream.js";
|
|
5
5
|
import { resolveBasetenThinkingProfile } from "./thinking.js";
|
|
6
|
-
import {
|
|
6
|
+
import { buildOpenAICompatibleLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
7
7
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
8
8
|
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
9
9
|
//#region extensions/baseten/index.ts
|
|
@@ -18,30 +18,32 @@ var baseten_default = defineSingleProviderPluginEntry({
|
|
|
18
18
|
label: "Baseten",
|
|
19
19
|
docsPath: "/providers/baseten",
|
|
20
20
|
manifestAuth: {
|
|
21
|
-
applyConfig:
|
|
21
|
+
applyConfig: applyBasetenSetupConfig,
|
|
22
22
|
noteTitle: "Baseten",
|
|
23
23
|
noteMessage: ["Baseten hosts Thinking Machines Lab's Inkling and other frontier models behind one OpenAI-compatible API.", "Get your API key at: https://app.baseten.co/settings/api_keys"].join("\n")
|
|
24
24
|
},
|
|
25
25
|
catalog: {
|
|
26
26
|
order: "simple",
|
|
27
27
|
run: async (ctx) => {
|
|
28
|
-
const { apiKey, discoveryApiKey } = ctx.resolveProviderAuth(PROVIDER_ID);
|
|
28
|
+
const { apiKey, discoveryApiKey, profileId } = ctx.resolveProviderAuth(PROVIDER_ID);
|
|
29
29
|
if (!apiKey) return null;
|
|
30
30
|
if (!discoveryApiKey) return { provider: {
|
|
31
31
|
...buildStaticBasetenProvider(),
|
|
32
32
|
apiKey
|
|
33
33
|
} };
|
|
34
|
-
return
|
|
34
|
+
return await buildOpenAICompatibleLiveProviderCatalog({
|
|
35
|
+
discoveryMode: "strict",
|
|
35
36
|
providerId: PROVIDER_ID,
|
|
36
37
|
providerConfig: buildStaticBasetenProvider(),
|
|
37
38
|
apiKey,
|
|
38
39
|
discoveryApiKey,
|
|
40
|
+
profileId,
|
|
39
41
|
modelDiscovery: {
|
|
40
42
|
timeoutMs: 1e4,
|
|
41
43
|
ttlMs: 3e5,
|
|
42
44
|
projectRows: projectBasetenLiveModels
|
|
43
45
|
}
|
|
44
|
-
})
|
|
46
|
+
});
|
|
45
47
|
},
|
|
46
48
|
staticRun: async () => ({ provider: buildStaticBasetenProvider() })
|
|
47
49
|
},
|
|
@@ -3,6 +3,7 @@ import { asNonArrayRecord, filterStringEntries } from "openclaw/plugin-sdk/strin
|
|
|
3
3
|
//#region extensions/baseten/openclaw.plugin.json
|
|
4
4
|
var openclaw_plugin_default = {
|
|
5
5
|
id: "baseten",
|
|
6
|
+
categories: ["models"],
|
|
6
7
|
name: "Baseten",
|
|
7
8
|
description: "OpenClaw Baseten provider plugin.",
|
|
8
9
|
activation: { "onStartup": false },
|
package/dist/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, s as projectBasetenLiveModels, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, s as projectBasetenLiveModels, t as BASETEN_BASE_URL } from "./models-CUyzLrPr.js";
|
|
2
2
|
export { BASETEN_BASE_URL, BASETEN_DEFAULT_MODEL_ID, BASETEN_DEFAULT_MODEL_REF, BASETEN_MODEL_CATALOG, buildBasetenModelCompat, buildStaticBasetenModels, projectBasetenLiveModels, resolveBasetenDynamicModel, usesBasetenChatTemplateThinking };
|
package/dist/onboard.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-CUyzLrPr.js";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/baseten/onboard.ts
|
|
4
4
|
/** Baseten onboarding config helpers. */
|
|
5
|
-
|
|
6
|
-
const { applyConfig: applyBasetenConfig } = createModelCatalogPresetAppliers({
|
|
5
|
+
const { applyConfig } = createModelCatalogPresetAppliers({
|
|
7
6
|
primaryModelRef: BASETEN_DEFAULT_MODEL_REF,
|
|
8
|
-
resolveParams: () => ({
|
|
7
|
+
resolveParams: (_cfg, catalogModels) => ({
|
|
9
8
|
providerId: "baseten",
|
|
10
9
|
api: "openai-completions",
|
|
11
10
|
baseUrl: BASETEN_BASE_URL,
|
|
12
|
-
catalogModels
|
|
11
|
+
catalogModels,
|
|
13
12
|
aliases: [{
|
|
14
13
|
modelRef: BASETEN_DEFAULT_MODEL_REF,
|
|
15
14
|
alias: "Inkling"
|
|
16
15
|
}]
|
|
17
16
|
})
|
|
18
17
|
});
|
|
18
|
+
/** Applies Baseten's provider catalog, Inkling alias, and default model. */
|
|
19
|
+
const applyBasetenConfig = (cfg) => applyConfig(cfg, buildStaticBasetenModels());
|
|
20
|
+
const applyBasetenSetupConfig = (cfg) => applyConfig(cfg, cfg.models?.mode === "replace" ? buildStaticBasetenModels() : []);
|
|
19
21
|
//#endregion
|
|
20
|
-
export { applyBasetenConfig };
|
|
22
|
+
export { applyBasetenConfig, applyBasetenSetupConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./models-CUyzLrPr.js";
|
|
2
2
|
//#region extensions/baseten/provider-catalog.ts
|
|
3
3
|
/** Builds Baseten's network-free fallback provider catalog. */
|
|
4
4
|
function buildStaticBasetenProvider() {
|
package/dist/stream.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as usesBasetenChatTemplateThinking } from "./models-
|
|
1
|
+
import { l as usesBasetenChatTemplateThinking } from "./models-CUyzLrPr.js";
|
|
2
2
|
import { asNonArrayRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { createPayloadPatchStreamWrapper, normalizeOpenAICompatibleReasoningReplay } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
4
4
|
//#region extensions/baseten/stream.ts
|
package/dist/thinking.js
CHANGED
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/baseten-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.4",
|
|
4
4
|
"description": "OpenClaw Baseten provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.9.
|
|
21
|
+
"pluginApi": ">=2026.9.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.4",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.9.
|
|
41
|
+
"openclaw": ">=2026.9.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|