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