refactor: add non-interactive provider plugin setup

This commit is contained in:
Peter Steinberger
2026-03-13 01:08:29 +00:00
parent bcbf429d6b
commit 87ad1ce9b1
13 changed files with 490 additions and 63 deletions

View File

@@ -1,9 +1,11 @@
import {
buildVllmProvider,
configureOpenAICompatibleSelfHostedProviderNonInteractive,
emptyPluginConfigSchema,
promptAndConfigureOpenAICompatibleSelfHostedProvider,
type OpenClawPluginApi,
type ProviderAuthContext,
type ProviderAuthMethodNonInteractiveContext,
type ProviderAuthResult,
type ProviderDiscoveryContext,
} from "openclaw/plugin-sdk/core";
@@ -49,6 +51,15 @@ const vllmPlugin = {
defaultModel: result.modelRef,
};
},
runNonInteractive: async (ctx: ProviderAuthMethodNonInteractiveContext) =>
configureOpenAICompatibleSelfHostedProviderNonInteractive({
ctx,
providerId: PROVIDER_ID,
providerLabel: "vLLM",
defaultBaseUrl: DEFAULT_BASE_URL,
defaultApiKeyEnvVar: "VLLM_API_KEY",
modelPlaceholder: "meta-llama/Meta-Llama-3-8B-Instruct",
}),
},
],
discovery: {

View File

@@ -1,5 +1,5 @@
{
"name": "@openclaw/vllm-provider",
"name": "@openclaw/vllm",
"version": "2026.3.11",
"private": true,
"description": "OpenClaw vLLM provider plugin",