mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-15 07:04:01 -06:00
35a1777f68
* refactor(providers): consolidate catalog setup helpers * fix(huggingface): narrow discovered model entries
14 lines
467 B
TypeScript
14 lines
467 B
TypeScript
// Deepinfra setup module handles plugin onboarding behavior.
|
|
import {
|
|
createAliasOnlyPresetAppliers,
|
|
type OpenClawConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
import { DEEPINFRA_DEFAULT_MODEL_REF } from "./provider-models.js";
|
|
|
|
export function applyDeepInfraConfig(
|
|
cfg: OpenClawConfig,
|
|
modelRef: string = DEEPINFRA_DEFAULT_MODEL_REF,
|
|
): OpenClawConfig {
|
|
return createAliasOnlyPresetAppliers({ modelRef, alias: "DeepInfra" }).applyConfig(cfg);
|
|
}
|