mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 10:56:13 +00:00
28 lines
910 B
TypeScript
28 lines
910 B
TypeScript
// Featherless onboarding applies the curated model catalog and default.
|
|
import {
|
|
createModelCatalogPresetAppliers,
|
|
type OpenClawConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
import {
|
|
buildFeatherlessCatalogModels,
|
|
FEATHERLESS_BASE_URL,
|
|
FEATHERLESS_DEFAULT_MODEL_REF,
|
|
} from "./models.js";
|
|
|
|
export { FEATHERLESS_DEFAULT_MODEL_REF } from "./models.js";
|
|
|
|
const featherlessPresetAppliers = createModelCatalogPresetAppliers({
|
|
primaryModelRef: FEATHERLESS_DEFAULT_MODEL_REF,
|
|
resolveParams: (_cfg: OpenClawConfig) => ({
|
|
providerId: "featherless",
|
|
api: "openai-completions",
|
|
baseUrl: FEATHERLESS_BASE_URL,
|
|
catalogModels: buildFeatherlessCatalogModels(),
|
|
aliases: [{ modelRef: FEATHERLESS_DEFAULT_MODEL_REF, alias: "Qwen3 32B" }],
|
|
}),
|
|
});
|
|
|
|
export function applyFeatherlessConfig(cfg: OpenClawConfig): OpenClawConfig {
|
|
return featherlessPresetAppliers.applyConfig(cfg);
|
|
}
|