Files
openclaw/extensions/longcat/models.ts
Vincent Koc bf8626c0e9 feat(providers): add LongCat API support (#100501)
* fix(ai): honor provider reasoning compatibility

* feat(longcat): add hosted provider plugin

* chore(longcat): register package metadata

* docs(longcat): add provider setup guide

* docs(longcat): document self-hosted model routing

* refactor(longcat): externalize provider plugin

* chore(longcat): add npm release artifacts
2026-07-06 10:07:08 -07:00

15 lines
756 B
TypeScript

// LongCat plugin module implements models behavior.
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-shared";
import manifest from "./openclaw.plugin.json" with { type: "json" };
const LONGCAT_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
providerId: "longcat",
catalog: manifest.modelCatalog.providers.longcat,
});
export const LONGCAT_BASE_URL = LONGCAT_MANIFEST_PROVIDER.baseUrl;
export const LONGCAT_MODEL_CATALOG: ModelDefinitionConfig[] = LONGCAT_MANIFEST_PROVIDER.models;
export const LONGCAT_DEFAULT_MODEL_ID = "LongCat-2.0";
export const LONGCAT_DEFAULT_MODEL_REF = `longcat/${LONGCAT_DEFAULT_MODEL_ID}`;