@openclaw/baseten-provider 2026.9.2 → 2026.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.
- package/dist/index.js +8 -6
- package/dist/onboard.js +7 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./models-KN-wJGgM.js";
|
|
2
|
-
import {
|
|
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
|
},
|
package/dist/onboard.js
CHANGED
|
@@ -2,19 +2,21 @@ import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BAS
|
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/baseten-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.3",
|
|
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.3"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.3",
|
|
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.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|