UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 947 B
import { p as createModelCatalogPresetAppliers } from "./provider-onboard-B2T4rQ-y.js"; import { i as buildCohereModelDefinition, n as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-CWOwAil0.js"; //#region extensions/cohere/onboard.ts const COHERE_DEFAULT_MODEL_ID = "command-a-03-2025"; const COHERE_DEFAULT_MODEL_REF = `cohere/${COHERE_DEFAULT_MODEL_ID}`; const coherePresetAppliers = createModelCatalogPresetAppliers({ primaryModelRef: COHERE_DEFAULT_MODEL_REF, resolveParams: (_cfg) => ({ providerId: "cohere", api: "openai-completions", baseUrl: COHERE_BASE_URL, catalogModels: COHERE_MODEL_CATALOG.map(buildCohereModelDefinition), aliases: [{ modelRef: COHERE_DEFAULT_MODEL_REF, alias: "Cohere Command A" }] }) }); function applyCohereConfig(cfg) { return coherePresetAppliers.applyConfig(cfg); } //#endregion export { COHERE_DEFAULT_MODEL_REF as n, applyCohereConfig as r, COHERE_DEFAULT_MODEL_ID as t };