mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 11:36:06 +00:00
* chore(tooling): enforce current formatter and refresh checks * chore(tooling): keep release changelog formatter-owned * chore(tooling): retain compatible Node type surface * ci: enforce formatting for docs-only changes * ci: isolate docs formatter check * chore(tooling): apply updated lint and format rules * chore(tooling): satisfy updated switch lint * style(ui): apply Linux formatter layout * test(doctor): match quiet local audio contribution * test(doctor): assert quiet output only * test(doctor): follow restored information contract
28 lines
951 B
TypeScript
28 lines
951 B
TypeScript
/**
|
|
* Meta onboarding config helpers.
|
|
*/
|
|
import {
|
|
createModelCatalogPresetAppliers,
|
|
type OpenClawConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
import { buildMetaModelDefinition, META_BASE_URL, META_MODEL_CATALOG } from "./models.js";
|
|
|
|
/** Default Meta model reference used after onboarding. */
|
|
export const META_DEFAULT_MODEL_REF = "meta/muse-spark-1.1";
|
|
|
|
const metaPresetAppliers = createModelCatalogPresetAppliers({
|
|
primaryModelRef: META_DEFAULT_MODEL_REF,
|
|
resolveParams: (_cfg: OpenClawConfig) => ({
|
|
providerId: "meta",
|
|
api: "openai-responses",
|
|
baseUrl: META_BASE_URL,
|
|
catalogModels: META_MODEL_CATALOG.map(buildMetaModelDefinition),
|
|
aliases: [{ modelRef: META_DEFAULT_MODEL_REF, alias: "Muse Spark 1.1" }],
|
|
}),
|
|
});
|
|
|
|
/** Applies Meta provider/catalog config and default model aliases. */
|
|
export function applyMetaConfig(cfg: OpenClawConfig): OpenClawConfig {
|
|
return metaPresetAppliers.applyConfig(cfg);
|
|
}
|