mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
11 lines
399 B
TypeScript
11 lines
399 B
TypeScript
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { discoverVercelAiGatewayModels, VERCEL_AI_GATEWAY_BASE_URL } from "./api.js";
|
|
|
|
export async function buildVercelAiGatewayProvider(): Promise<ModelProviderConfig> {
|
|
return {
|
|
baseUrl: VERCEL_AI_GATEWAY_BASE_URL,
|
|
api: "anthropic-messages",
|
|
models: await discoverVercelAiGatewayModels(),
|
|
};
|
|
}
|