mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 13:51:33 +00:00
* refactor: remove duplicated runtime and provider code * refactor: exclude unrelated browser test cleanup * refactor: preserve canonical subagent cleanup ordering
18 lines
810 B
TypeScript
18 lines
810 B
TypeScript
import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
import { buildCohereCatalogModels, COHERE_BASE_URL } from "./models.js";
|
|
import manifest from "./openclaw.plugin.json" with { type: "json" };
|
|
|
|
const COHERE_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(manifest, "cohere")!;
|
|
|
|
export const { applyConfig: applyCohereConfig } = createModelCatalogPresetAppliers<[]>({
|
|
primaryModelRef: COHERE_DEFAULT_MODEL_REF,
|
|
resolveParams: () => ({
|
|
providerId: "cohere",
|
|
api: "openai-completions",
|
|
baseUrl: COHERE_BASE_URL,
|
|
catalogModels: buildCohereCatalogModels(),
|
|
aliases: [{ modelRef: COHERE_DEFAULT_MODEL_REF, alias: "Cohere Command A+" }],
|
|
}),
|
|
});
|