Files
openclaw/extensions/byteplus/models.ts
Peter Steinberger 5b29a1e278 refactor(providers): consolidate sibling adapters (#117822)
* refactor(providers): consolidate sibling adapters

* fix(providers): preserve concrete plugin entry type
2026-08-01 22:10:06 -07:00

34 lines
1.2 KiB
TypeScript

/**
* BytePlus model catalog helpers derived from the plugin manifest.
*/
import { buildManifestProviderCatalogFamily } from "openclaw/plugin-sdk/provider-catalog-shared";
import manifest from "./openclaw.plugin.json" with { type: "json" };
export const BYTEPLUS_PROVIDER_CATALOG = buildManifestProviderCatalogFamily({
surfaces: [
{
id: "byteplus",
label: "BytePlus",
catalog: manifest.modelCatalog.providers.byteplus,
},
{
id: "byteplus-plan",
label: "BytePlus Plan",
catalog: manifest.modelCatalog.providers["byteplus-plan"],
},
],
});
const BYTEPLUS_PROVIDER = BYTEPLUS_PROVIDER_CATALOG.entries[0]!;
const BYTEPLUS_CODING_PROVIDER = BYTEPLUS_PROVIDER_CATALOG.entries[1]!;
/** Base URL for BytePlus chat/model APIs from the manifest catalog. */
export const BYTEPLUS_BASE_URL = BYTEPLUS_PROVIDER.baseUrl;
/** Base URL for BytePlus Plan coding APIs from the manifest catalog. */
export const BYTEPLUS_CODING_BASE_URL = BYTEPLUS_CODING_PROVIDER.baseUrl;
/** BytePlus general model catalog entries. */
export const BYTEPLUS_MODEL_CATALOG = BYTEPLUS_PROVIDER.models;
/** BytePlus coding/planning model catalog entries. */
export const BYTEPLUS_CODING_MODEL_CATALOG = BYTEPLUS_CODING_PROVIDER.models;