mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
430c293ee0
* refactor: remove duplicated runtime and provider code * refactor: exclude unrelated browser test cleanup * refactor: preserve canonical subagent cleanup ordering
21 lines
801 B
TypeScript
21 lines
801 B
TypeScript
// Huggingface setup module handles plugin onboarding behavior.
|
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
import {
|
|
buildHuggingfaceModelDefinition,
|
|
HUGGINGFACE_BASE_URL,
|
|
HUGGINGFACE_MODEL_CATALOG,
|
|
} from "./models.js";
|
|
|
|
export const HUGGINGFACE_DEFAULT_MODEL_REF = "huggingface/deepseek-ai/DeepSeek-R1";
|
|
|
|
export const { applyConfig: applyHuggingfaceConfig } = createModelCatalogPresetAppliers<[]>({
|
|
primaryModelRef: HUGGINGFACE_DEFAULT_MODEL_REF,
|
|
resolveParams: () => ({
|
|
providerId: "huggingface",
|
|
api: "openai-completions",
|
|
baseUrl: HUGGINGFACE_BASE_URL,
|
|
catalogModels: HUGGINGFACE_MODEL_CATALOG.map(buildHuggingfaceModelDefinition),
|
|
aliases: [{ modelRef: HUGGINGFACE_DEFAULT_MODEL_REF, alias: "Hugging Face" }],
|
|
}),
|
|
});
|