@openclaw/arcee-provider 2026.9.5 → 2026.9.7
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/assets/icon.png +0 -0
- package/dist/index.js +13 -19
- package/dist/provider-catalog.js +1 -5
- package/package.json +4 -4
package/assets/icon.png
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -17,29 +17,23 @@ const ARCEE_WIZARD_GROUP = {
|
|
|
17
17
|
};
|
|
18
18
|
async function resolveArceeCatalog(ctx) {
|
|
19
19
|
const configuredBaseUrl = resolveMergedModelProviderConfig(ctx.config, PROVIDER_ID)?.baseUrl;
|
|
20
|
-
if (normalizeArceeOpenRouterBaseUrl(configuredBaseUrl)) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (!normalizeArceeOpenRouterBaseUrl(configuredBaseUrl)) {
|
|
21
|
+
const directAuth = ctx.resolveProviderApiKey(PROVIDER_ID);
|
|
22
|
+
if (directAuth.apiKey) return await buildOpenAICompatibleLiveProviderCatalog({
|
|
23
|
+
discoveryMode: "strict",
|
|
24
|
+
providerId: PROVIDER_ID,
|
|
25
|
+
providerConfig: buildArceeProvider(),
|
|
26
|
+
apiKey: directAuth.apiKey,
|
|
27
|
+
discoveryApiKey: directAuth.discoveryApiKey,
|
|
28
|
+
profileId: directAuth.profileId
|
|
29
|
+
});
|
|
30
|
+
if (configuredBaseUrl) return null;
|
|
26
31
|
}
|
|
27
|
-
const directAuth = ctx.resolveProviderApiKey(PROVIDER_ID);
|
|
28
|
-
if (directAuth.apiKey) return await buildOpenAICompatibleLiveProviderCatalog({
|
|
29
|
-
discoveryMode: "strict",
|
|
30
|
-
providerId: PROVIDER_ID,
|
|
31
|
-
providerConfig: buildArceeProvider(),
|
|
32
|
-
apiKey: directAuth.apiKey,
|
|
33
|
-
discoveryApiKey: directAuth.discoveryApiKey,
|
|
34
|
-
profileId: directAuth.profileId
|
|
35
|
-
});
|
|
36
|
-
if (configuredBaseUrl) return null;
|
|
37
32
|
const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
|
|
38
|
-
|
|
33
|
+
return openRouterKey ? { provider: {
|
|
39
34
|
...buildArceeOpenRouterProvider(),
|
|
40
35
|
apiKey: openRouterKey
|
|
41
|
-
} };
|
|
42
|
-
return null;
|
|
36
|
+
} } : null;
|
|
43
37
|
}
|
|
44
38
|
function normalizeArceeResolvedModel(model) {
|
|
45
39
|
const normalizedBaseUrl = normalizeArceeOpenRouterBaseUrl(model.baseUrl);
|
package/dist/provider-catalog.js
CHANGED
|
@@ -4,13 +4,9 @@ import { ARCEE_BASE_URL, ARCEE_MODEL_CATALOG, buildArceeModelDefinition } from "
|
|
|
4
4
|
const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
|
|
5
5
|
const OPENROUTER_LEGACY_BASE_URL = "https://openrouter.ai/v1";
|
|
6
6
|
const ARCEE_OPENROUTER_MODEL_IDS = /* @__PURE__ */ new Set(["trinity-large-preview", "trinity-large-thinking"]);
|
|
7
|
-
function normalizeBaseUrl(baseUrl) {
|
|
8
|
-
return (baseUrl ?? "").trim().replace(/\/+$/, "");
|
|
9
|
-
}
|
|
10
7
|
/** Normalize OpenRouter base URLs accepted for Arcee model routing. */
|
|
11
8
|
function normalizeArceeOpenRouterBaseUrl(baseUrl) {
|
|
12
|
-
const normalized =
|
|
13
|
-
if (!normalized) return;
|
|
9
|
+
const normalized = (baseUrl ?? "").trim().replace(/\/+$/, "");
|
|
14
10
|
if (normalized === "https://openrouter.ai/api/v1" || normalized === OPENROUTER_LEGACY_BASE_URL) return OPENROUTER_BASE_URL;
|
|
15
11
|
}
|
|
16
12
|
/** Convert a bare or legacy Arcee model id to OpenRouter's `arcee-ai/*` id. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/arcee-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.7",
|
|
4
4
|
"description": "OpenClaw Arcee provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.9.
|
|
21
|
+
"pluginApi": ">=2026.9.7"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.7",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.9.
|
|
43
|
+
"openclaw": ">=2026.9.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|