@openclaw/featherless-provider 2026.9.4 → 2026.9.5

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.
@@ -0,0 +1,32 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <!--
3
+ Adapted from OpenClaw ui/public/provider-icons/ProviderIcon-featherless.svg.
4
+ Source: @lobehub/icons-static-svg@1.94.0, featherless.svg
5
+ https://www.npmjs.com/package/@lobehub/icons-static-svg/v/1.94.0
6
+ https://github.com/lobehub/lobe-icons
7
+
8
+ MIT License
9
+ Copyright (c) 2023 LobeHub
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Names and marks remain the property of their respective owners.
30
+ -->
31
+ <path fill="currentColor" fill-rule="evenodd" stroke="none" d="M22.724 3.088C21.527 2.376 19.91 2 18.044 2c-2.854 0-6 .877-8.826 2.403l-.02-.007-.004.021c-.855.464-1.684.981-2.462 1.558C2.147 9.376.863 13.412 1.947 15.57.76 17.542.03 19.583 0 22c2.28-4.233 3.648-7.663 11.076-13.438-2.122.443-5.79 2.545-8.258 5.735-.233-1.866 1.28-4.879 4.65-7.379.428-.316.871-.612 1.324-.893-.354 1.071-.24.805-.975 2.307 1.086-1.001 1.8-1.62 2.873-3.335a18.995 18.995 0 014.276-1.465c-.238.767-.69 2.067-1.302 3.095 0 0 1.553-.324 2.837-.25-.701.753-1.333 1.569-1.973 2.403-.876 1.142-1.782 2.322-2.943 3.421-.14.133-.273.253-.408.377-1.784-.167-2.961.483-4.065 1.63.87-.395 2.04-.72 2.772-.524-1.35 1.073-3.477 2.487-5.224 2.37-.332.492-.353.507-.717 1.1 2.835.688 6.395-2.118 8.49-4.103 1.229-1.164 2.165-2.383 3.07-3.56 1.862-2.427 3.471-4.523 7.04-5.32L24 3.846l-1.276-.758z" />
32
+ </svg>
Binary file
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as FEATHERLESS_DEFAULT_MODEL_REF, c as FEATHERLESS_DYNAMIC_MAX_TOKENS, i as FEATHERLESS_DEFAULT_MODEL_ID, l as buildFeatherlessCatalogModels, n as FEATHERLESS_DEFAULT_CONTEXT_WINDOW, r as FEATHERLESS_DEFAULT_MAX_TOKENS, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./models-J3WOft2N.js";
1
+ import { a as FEATHERLESS_DEFAULT_MODEL_REF, c as FEATHERLESS_DYNAMIC_MAX_TOKENS, i as FEATHERLESS_DEFAULT_MODEL_ID, l as buildFeatherlessCatalogModels, n as FEATHERLESS_DEFAULT_CONTEXT_WINDOW, r as FEATHERLESS_DEFAULT_MAX_TOKENS, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./.setup/models-J3WOft2N.mjs";
2
2
  import { applyFeatherlessConfig } from "./onboard.js";
3
3
  import { buildFeatherlessProvider } from "./provider-catalog.js";
4
4
  export { FEATHERLESS_BASE_URL, FEATHERLESS_DEFAULT_CONTEXT_WINDOW, FEATHERLESS_DEFAULT_MAX_TOKENS, FEATHERLESS_DEFAULT_MODEL_ID, FEATHERLESS_DEFAULT_MODEL_REF, FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, FEATHERLESS_DYNAMIC_MAX_TOKENS, applyFeatherlessConfig, buildFeatherlessCatalogModels, buildFeatherlessProvider, isFeatherlessCatalogModelId };
package/dist/index.js CHANGED
@@ -1,45 +1,36 @@
1
- import { a as FEATHERLESS_DEFAULT_MODEL_REF, d as openclaw_plugin_default, o as FEATHERLESS_DYNAMIC_COMPAT, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./models-J3WOft2N.js";
1
+ import { a as FEATHERLESS_DEFAULT_MODEL_REF, c as FEATHERLESS_DYNAMIC_MAX_TOKENS, d as openclaw_plugin_default, i as FEATHERLESS_DEFAULT_MODEL_ID, o as FEATHERLESS_DYNAMIC_COMPAT, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./.setup/models-J3WOft2N.mjs";
2
2
  import { applyFeatherlessConnectionConfig } from "./onboard.js";
3
3
  import "./provider-catalog.js";
4
4
  import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
5
5
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
6
- import { buildProviderReplayFamilyHooks, cloneFirstTemplateModel, normalizeModelCompat } from "openclaw/plugin-sdk/provider-model-shared";
6
+ import { buildProviderReplayFamilyHooks, resolveFamilyForwardCompatModel } from "openclaw/plugin-sdk/provider-model-shared";
7
7
  import { buildProviderToolCompatFamilyHooks } from "openclaw/plugin-sdk/provider-tools";
8
8
  //#region extensions/featherless/index.ts
9
9
  const PROVIDER_ID = "featherless";
10
10
  function resolveFeatherlessDynamicModel(ctx) {
11
11
  const modelId = ctx.modelId.trim();
12
12
  if (!modelId || isFeatherlessCatalogModelId(modelId)) return;
13
- return cloneFirstTemplateModel({
13
+ return resolveFamilyForwardCompatModel({
14
14
  providerId: PROVIDER_ID,
15
15
  modelId,
16
- templateIds: ["Qwen/Qwen3-32B"],
17
16
  ctx,
17
+ cases: [{
18
+ match: () => true,
19
+ templateIds: [FEATHERLESS_DEFAULT_MODEL_ID],
20
+ patch: ({ template }) => template ? void 0 : {
21
+ api: "openai-completions",
22
+ baseUrl: FEATHERLESS_BASE_URL
23
+ }
24
+ }],
18
25
  patch: {
19
26
  provider: PROVIDER_ID,
20
27
  reasoning: false,
21
28
  input: ["text"],
22
- contextWindow: 4096,
23
- maxTokens: 1024,
29
+ contextWindow: FEATHERLESS_DYNAMIC_CONTEXT_WINDOW,
30
+ maxTokens: FEATHERLESS_DYNAMIC_MAX_TOKENS,
24
31
  compat: FEATHERLESS_DYNAMIC_COMPAT
25
- }
26
- }) ?? normalizeModelCompat({
27
- id: modelId,
28
- name: modelId,
29
- provider: PROVIDER_ID,
30
- api: "openai-completions",
31
- baseUrl: FEATHERLESS_BASE_URL,
32
- reasoning: false,
33
- input: ["text"],
34
- cost: {
35
- input: 0,
36
- output: 0,
37
- cacheRead: 0,
38
- cacheWrite: 0
39
32
  },
40
- contextWindow: 4096,
41
- maxTokens: 1024,
42
- compat: FEATHERLESS_DYNAMIC_COMPAT
33
+ synthesize: true
43
34
  });
44
35
  }
45
36
  function normalizeFeatherlessResolvedModel(model) {
package/dist/models.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as FEATHERLESS_DEFAULT_MODEL_REF, c as FEATHERLESS_DYNAMIC_MAX_TOKENS, i as FEATHERLESS_DEFAULT_MODEL_ID, l as buildFeatherlessCatalogModels, n as FEATHERLESS_DEFAULT_CONTEXT_WINDOW, o as FEATHERLESS_DYNAMIC_COMPAT, r as FEATHERLESS_DEFAULT_MAX_TOKENS, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./models-J3WOft2N.js";
1
+ import { a as FEATHERLESS_DEFAULT_MODEL_REF, c as FEATHERLESS_DYNAMIC_MAX_TOKENS, i as FEATHERLESS_DEFAULT_MODEL_ID, l as buildFeatherlessCatalogModels, n as FEATHERLESS_DEFAULT_CONTEXT_WINDOW, o as FEATHERLESS_DYNAMIC_COMPAT, r as FEATHERLESS_DEFAULT_MAX_TOKENS, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./.setup/models-J3WOft2N.mjs";
2
2
  export { FEATHERLESS_BASE_URL, FEATHERLESS_DEFAULT_CONTEXT_WINDOW, FEATHERLESS_DEFAULT_MAX_TOKENS, FEATHERLESS_DEFAULT_MODEL_ID, FEATHERLESS_DEFAULT_MODEL_REF, FEATHERLESS_DYNAMIC_COMPAT, FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, FEATHERLESS_DYNAMIC_MAX_TOKENS, buildFeatherlessCatalogModels, isFeatherlessCatalogModelId };
package/dist/onboard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as FEATHERLESS_DEFAULT_MODEL_REF, l as buildFeatherlessCatalogModels, t as FEATHERLESS_BASE_URL } from "./models-J3WOft2N.js";
1
+ import { a as FEATHERLESS_DEFAULT_MODEL_REF, l as buildFeatherlessCatalogModels, t as FEATHERLESS_BASE_URL } from "./.setup/models-J3WOft2N.mjs";
2
2
  import { createModelCatalogPresetAppliers, createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
3
  //#region extensions/featherless/onboard.ts
4
4
  const featherlessPreset = {
@@ -1,4 +1,4 @@
1
- import { c as FEATHERLESS_DYNAMIC_MAX_TOKENS, d as openclaw_plugin_default, i as FEATHERLESS_DEFAULT_MODEL_ID, o as FEATHERLESS_DYNAMIC_COMPAT, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./models-J3WOft2N.js";
1
+ import { c as FEATHERLESS_DYNAMIC_MAX_TOKENS, d as openclaw_plugin_default, i as FEATHERLESS_DEFAULT_MODEL_ID, o as FEATHERLESS_DYNAMIC_COMPAT, s as FEATHERLESS_DYNAMIC_CONTEXT_WINDOW, t as FEATHERLESS_BASE_URL, u as isFeatherlessCatalogModelId } from "./.setup/models-J3WOft2N.mjs";
2
2
  import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
3
3
  //#region extensions/featherless/provider-catalog.ts
4
4
  function buildFeatherlessProvider() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/featherless-provider",
3
- "version": "2026.9.4",
3
+ "version": "2026.9.5",
4
4
  "description": "OpenClaw Featherless AI provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.11"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.9.4"
21
+ "pluginApi": ">=2026.9.5"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.4",
24
+ "openclawVersion": "2026.9.5",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -35,10 +35,12 @@
35
35
  "files": [
36
36
  "dist/**",
37
37
  "openclaw.plugin.json",
38
- "README.md"
38
+ "README.md",
39
+ "assets/icon.png",
40
+ "assets/activity.svg"
39
41
  ],
40
42
  "peerDependencies": {
41
- "openclaw": ">=2026.9.4"
43
+ "openclaw": ">=2026.9.5"
42
44
  },
43
45
  "peerDependenciesMeta": {
44
46
  "openclaw": {