mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 18:21:35 +00:00
15 lines
432 B
TypeScript
15 lines
432 B
TypeScript
/**
|
|
* Meta model provider builder.
|
|
*/
|
|
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { buildMetaCatalogModels, META_BASE_URL } from "./models.js";
|
|
|
|
/** Builds the Meta OpenAI-compatible model provider config. */
|
|
export function buildMetaProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: META_BASE_URL,
|
|
api: "openai-responses",
|
|
models: buildMetaCatalogModels(),
|
|
};
|
|
}
|